public class BcPGPKeyConverter extends PGPKeyConverter
| Constructor and Description |
|---|
BcPGPKeyConverter() |
| Modifier and Type | Method and Description |
|---|---|
PGPPrivateKey |
getPGPPrivateKey(PGPPublicKey pubKey,
org.bouncycastle.crypto.params.AsymmetricKeyParameter privKey) |
PGPPublicKey |
getPGPPublicKey(int version,
int algorithm,
PGPAlgorithmParameters algorithmParameters,
org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey,
java.util.Date time)
Create a PGPPublicKey from the passed in JCA one.
|
PGPPublicKey |
getPGPPublicKey(int algorithm,
PGPAlgorithmParameters algorithmParameters,
org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey,
java.util.Date time)
Deprecated.
use versioned
getPGPPublicKey(int, int, PGPAlgorithmParameters, AsymmetricKeyParameter, Date) instead |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getPrivateKey(PGPPrivateKey privKey) |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getPublicKey(PGPPublicKey publicKey) |
getPrivateKeyInfo, getPrivateKeyInfo, implGetKdfParameterspublic PGPPrivateKey getPGPPrivateKey(PGPPublicKey pubKey, org.bouncycastle.crypto.params.AsymmetricKeyParameter privKey) throws PGPException
PGPException@Deprecated public PGPPublicKey getPGPPublicKey(int algorithm, PGPAlgorithmParameters algorithmParameters, org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey, java.util.Date time) throws PGPException
getPGPPublicKey(int, int, PGPAlgorithmParameters, AsymmetricKeyParameter, Date) insteadNote: the time passed in affects the value of the key's keyID, so you probably only want to do this once for a JCA key, or make sure you keep track of the time you used.
algorithm - asymmetric algorithm type representing the public key.pubKey - actual public key to associate.time - date of creation.PGPException - on key creation problem.public PGPPublicKey getPGPPublicKey(int version, int algorithm, PGPAlgorithmParameters algorithmParameters, org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey, java.util.Date time) throws PGPException
Note: the time passed in affects the value of the key's keyID, so you probably only want to do this once for a JCA key, or make sure you keep track of the time you used.
version - key version.algorithm - asymmetric algorithm type representing the public key.pubKey - actual public key to associate.time - date of creation.PGPException - on key creation problem.public org.bouncycastle.crypto.params.AsymmetricKeyParameter getPrivateKey(PGPPrivateKey privKey) throws PGPException
PGPExceptionpublic org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKey(PGPPublicKey publicKey) throws PGPException
PGPException