Class ElGamalSecretBCPGKey

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

    public class ElGamalSecretBCPGKey
    extends BCPGObject
    implements BCPGKey
    base class for an ElGamal Secret Key.
    • Constructor Detail

      • ElGamalSecretBCPGKey

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

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

      • getX

        public java.math.BigInteger getX()
      • 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()