org.bouncycastle.openpgp
Class PGPPrivateKey
java.lang.Objectorg.bouncycastle.openpgp.PGPPrivateKey
public class PGPPrivateKey
extends java.lang.Object
general class to contain a private key for use with other openPGP
objects.
PGPPrivateKey(PrivateKey privateKey, long keyID)- Create a PGPPrivateKey from a regular private key and the keyID of its associated
public key.
|
PrivateKey | getKey()- Return the contained private key.
|
long | getKeyID()- Return the keyID associated with the contained private key.
|
PGPPrivateKey
public PGPPrivateKey(PrivateKey privateKey,
long keyID) Create a PGPPrivateKey from a regular private key and the keyID of its associated
public key.
privateKey - private key tu use.keyID - keyID of the corresponding public key.
getKey
public PrivateKey getKey()
Return the contained private key.
getKeyID
public long getKeyID()
Return the keyID associated with the contained private key.