Class JcaPGPKeyPair
java.lang.Object
org.bouncycastle.openpgp.PGPKeyPair
org.bouncycastle.openpgp.operator.jcajce.JcaPGPKeyPair
A PGP key pair class that is constructed from JCA/JCE key pairs.
-
Field Summary
Fields inherited from class org.bouncycastle.openpgp.PGPKeyPair
priv, pub -
Constructor Summary
ConstructorsConstructorDescriptionJcaPGPKeyPair(int version, int algorithm, KeyPair keyPair, Date date) Construct PGP key pair from a JCA/JCE key pair.JcaPGPKeyPair(int version, int algorithm, PGPAlgorithmParameters parameters, KeyPair keyPair, Date date) Construct PGP key pair from a JCA/JCE key pair.JcaPGPKeyPair(int algorithm, KeyPair keyPair, Date date) Deprecated.JcaPGPKeyPair(int algorithm, PGPAlgorithmParameters parameters, KeyPair keyPair, Date date) Deprecated.use versionedJcaPGPKeyPair(int, int, PGPAlgorithmParameters, KeyPair, Date)instead -
Method Summary
Methods inherited from class org.bouncycastle.openpgp.PGPKeyPair
asSubkey, getKeyID, getKeyIdentifier, getPrivateKey, getPublicKey
-
Constructor Details
-
JcaPGPKeyPair
Deprecated.use versionedJcaPGPKeyPair(int, int, KeyPair, Date)insteadConstruct version 4 PGP key pair from a JCA/JCE key pair.- Parameters:
algorithm- the PGP algorithm the key is for.keyPair- the public/private key pair to convert.date- the creation date to associate with the key pair.- Throws:
PGPException- if conversion fails.
-
JcaPGPKeyPair
Construct PGP key pair from a JCA/JCE key pair.- Parameters:
version- key version.algorithm- the PGP algorithm the key is for.keyPair- the public/private key pair to convert.date- the creation date to associate with the key pair.- Throws:
PGPException- if conversion fails.
-
JcaPGPKeyPair
@Deprecated public JcaPGPKeyPair(int algorithm, PGPAlgorithmParameters parameters, KeyPair keyPair, Date date) throws PGPException Deprecated.use versionedJcaPGPKeyPair(int, int, PGPAlgorithmParameters, KeyPair, Date)insteadConstruct version 4 PGP key pair from a JCA/JCE key pair.- Parameters:
algorithm- the PGP algorithm the key is for.parameters- additional parameters to be stored against the public key.keyPair- the public/private key pair to convert.date- the creation date to associate with the key pair.- Throws:
PGPException- if conversion fails.
-
JcaPGPKeyPair
public JcaPGPKeyPair(int version, int algorithm, PGPAlgorithmParameters parameters, KeyPair keyPair, Date date) throws PGPException Construct PGP key pair from a JCA/JCE key pair.- Parameters:
version- key version.algorithm- the PGP algorithm the key is for.parameters- additional parameters to be stored against the public key.keyPair- the public/private key pair to convert.date- the creation date to associate with the key pair.- Throws:
PGPException- if conversion fails.
-
JcaPGPKeyPair(int, int, KeyPair, Date)instead