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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(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:
getEncoded
in interfaceBCPGKey
- Specified by:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Overrides:
getEncoded
in classBCPGObject
- Returns:
- byte[]
- See Also:
-
getP
-
getG
-
getY
-
encode
- Specified by:
encode
in classBCPGObject
- Throws:
IOException
-