org.bouncycastle.openpgp
Class PGPKeyPair
java.lang.Object
|
+--org.bouncycastle.openpgp.PGPKeyPair
- public class PGPKeyPair
- extends java.lang.Object
- implements PublicKeyAlgorithmTags
general class to handle a PGP secret key object.
Constructor Summary |
PGPKeyPair(int algorithm,
java.security.PublicKey pubKey,
java.security.PrivateKey privKey,
java.util.Date time,
java.lang.String provider)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PGPKeyPair
public PGPKeyPair(int algorithm,
java.security.PublicKey pubKey,
java.security.PrivateKey privKey,
java.util.Date time,
java.lang.String provider)
throws PGPException,
java.security.NoSuchProviderException
getPublicKey
public PGPPublicKey getPublicKey()
getPrivateKey
public PGPPrivateKey getPrivateKey()