org.bouncycastle.openpgp

Class PGPPrivateKey

public class PGPPrivateKey extends Object

general class to contain a private key for use with other openPGP objects.
Constructor Summary
PGPPrivateKey(PrivateKey privateKey, long keyID)
Create a PGPPrivateKey from a regular private key and the keyID of its associated public key.
Method Summary
PrivateKeygetKey()
Return the contained private key.
longgetKeyID()
Return the keyID associated with the contained private key.

Constructor Detail

PGPPrivateKey

public PGPPrivateKey(PrivateKey privateKey, long keyID)
Create a PGPPrivateKey from a regular private key and the keyID of its associated public key.

Parameters: privateKey private key tu use. keyID keyID of the corresponding public key.

Method Detail

getKey

public PrivateKey getKey()
Return the contained private key.

Returns: PrivateKey

getKeyID

public long getKeyID()
Return the keyID associated with the contained private key.

Returns: long