Package org.bouncycastle.bcpg
Class ElGamalPublicBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.ElGamalPublicBCPGKey
- All Implemented Interfaces:
BCPGKey,org.bouncycastle.util.Encodable
base class for an ElGamal Public Key.
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(BCPGOutputStream out) byte[]return the standard PGP encoding of the key.return "PGP"getG()getP()getY()
-
Constructor Details
-
ElGamalPublicBCPGKey
- Throws:
IOException
-
ElGamalPublicBCPGKey
-
-
Method Details
-
getFormat
return "PGP" -
getEncoded
public byte[] getEncoded()return the standard PGP encoding of the key.- Specified by:
getEncodedin interfaceBCPGKey- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Overrides:
getEncodedin classBCPGObject- Returns:
- byte[]
- See Also:
-
getP
-
getG
-
getY
-
encode
- Specified by:
encodein classBCPGObject- Throws:
IOException
-