Class EdSecretBCPGKey

  • All Implemented Interfaces:
    BCPGKey, org.bouncycastle.util.Encodable

    public class EdSecretBCPGKey
    extends BCPGObject
    implements BCPGKey
    base class for an Edwards Curve Secret Key.
    • Constructor Detail

      • EdSecretBCPGKey

        public EdSecretBCPGKey​(BCPGInputStream in)
                        throws java.io.IOException
        Parameters:
        in -
        Throws:
        java.io.IOException
      • EdSecretBCPGKey

        public EdSecretBCPGKey​(java.math.BigInteger x)
        Parameters:
        x -
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        return the standard PGP encoding of the key.
        Specified by:
        getEncoded in interface BCPGKey
        Specified by:
        getEncoded in interface org.bouncycastle.util.Encodable
        Overrides:
        getEncoded in class BCPGObject
        Returns:
        byte[]
        See Also:
        BCPGKey.getEncoded()
      • getX

        public java.math.BigInteger getX()
        Returns:
        x