Bouncy Castle Cryptography 1.22

org.bouncycastle.openpgp
Class PGPKeyPair

java.lang.Object
  |
  +--org.bouncycastle.openpgp.PGPKeyPair
All Implemented Interfaces:
PublicKeyAlgorithmTags

public class PGPKeyPair
extends java.lang.Object
implements PublicKeyAlgorithmTags

general class to handle a PGP secret key object.


Field Summary
 
Fields inherited from interface org.bouncycastle.bcpg.PublicKeyAlgorithmTags
DIFFIE_HELLMAN, DSA, EC, ECDSA, ELGAMAL_ENCRYPT, ELGAMAL_GENERAL, RSA_ENCRYPT, RSA_GENERAL, RSA_SIGN
 
Constructor Summary
PGPKeyPair(int algorithm, java.security.PublicKey pubKey, java.security.PrivateKey privKey, java.util.Date time, java.lang.String provider)
           
 
Method Summary
 PGPPrivateKey getPrivateKey()
           
 PGPPublicKey getPublicKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

getPublicKey

public PGPPublicKey getPublicKey()

getPrivateKey

public PGPPrivateKey getPrivateKey()

Bouncy Castle Cryptography 1.22