Package org.bouncycastle.bcpg
Class ElGamalSecretBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.ElGamalSecretBCPGKey
- All Implemented Interfaces:
BCPGKey
,org.bouncycastle.util.Encodable
base class for an ElGamal Secret Key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(BCPGOutputStream out) byte[]
return the standard PGP encoding of the key.return "PGP"getX()
-
Constructor Details
-
ElGamalSecretBCPGKey
- Parameters:
in
-- Throws:
IOException
-
ElGamalSecretBCPGKey
- Parameters:
x
-
-
-
Method Details
-
getFormat
return "PGP" -
getX
-
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:
-
encode
- Specified by:
encode
in classBCPGObject
- Throws:
IOException
-