Class ECSecretBCPGKey

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

    public class ECSecretBCPGKey
    extends BCPGObject
    implements BCPGKey
    base class for an EC Secret Key.
    • Constructor Detail

      • ECSecretBCPGKey

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

        public ECSecretBCPGKey​(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