public class PGPPrivateKey
extends java.lang.Object
Constructor and Description |
---|
PGPPrivateKey(long keyID,
PublicKeyPacket publicKeyPacket,
BCPGKey privateKeyDataPacket)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getKeyID()
Return the keyID associated with the contained private key.
|
BCPGKey |
getPrivateKeyDataPacket()
Return the private key packet associated with this private key, if available.
|
PublicKeyPacket |
getPublicKeyPacket()
Return the public key packet associated with this private key, if available.
|
public PGPPrivateKey(long keyID, PublicKeyPacket publicKeyPacket, BCPGKey privateKeyDataPacket)
keyID
- keyID associated with the public key.publicKeyPacket
- the public key data packet to be associated with this private key.privateKeyDataPacket
- the private key data packet to be associate with this private key.public long getKeyID()
public PublicKeyPacket getPublicKeyPacket()
public BCPGKey getPrivateKeyDataPacket()