Class ElGamalPublicBCPGKey

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

    public class ElGamalPublicBCPGKey
    extends BCPGObject
    implements BCPGKey
    base class for an ElGamal Public Key.
    • Constructor Detail

      • ElGamalPublicBCPGKey

        public ElGamalPublicBCPGKey​(BCPGInputStream in)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • ElGamalPublicBCPGKey

        public ElGamalPublicBCPGKey​(java.math.BigInteger p,
                                    java.math.BigInteger g,
                                    java.math.BigInteger y)
    • 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()
      • getP

        public java.math.BigInteger getP()
      • getG

        public java.math.BigInteger getG()
      • getY

        public java.math.BigInteger getY()