public class PGPPrivateKey extends Object
Constructor and Description |
---|
PGPPrivateKey(PrivateKey privateKey,
long keyID)
Create a PGPPrivateKey from a regular private key and the keyID of its associated
public key.
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
getKey()
Return the contained private key.
|
long |
getKeyID()
Return the keyID associated with the contained private key.
|
public PGPPrivateKey(PrivateKey privateKey, long keyID)
privateKey
- private key tu use.keyID
- keyID of the corresponding public key.public long getKeyID()
public PrivateKey getKey()