| Modifier and Type | Field and Description |
|---|---|
| private static final PGPKdfParameters | |
| private static final int | |
| private KeyFingerPrintCalculator | |
| private OperatorHelper | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ECParameterSpec | |
| private ECParameterSpec | |
| public PGPPrivateKey | Returns: a PGPPrivateKeythe corresponding PGPPublicKey to privKey. pub, PrivateKey the private key for the key in pub. privKey)Convert a PrivateKey into a PGPPrivateKey. |
| public PGPPublicKey | getPGPPublicKey(int
asymmetric algorithm type representing the public key. algorithm, PGPAlgorithmParameters additional parameters to be stored against the public key. algorithmParameters, PublicKey actual public key to associate. pubKey, Date date of creation. time)Create a PGPPublicKey from the passed in JCA one. |
| public PGPPublicKey | getPGPPublicKey(int
asymmetric algorithm type representing the public key. algorithm, PublicKey actual public key to associate. pubKey, Date date of creation. time)Create a PGPPublicKey from the passed in JCA one. |
| private BCPGKey | |
| public PrivateKey | |
| private BCPGKey | getPublicBCPGKey(int algorithm, PGPAlgorithmParameters algorithmParameters, PublicKey pubKey, Date time)
|
| public PublicKey | |
| private PrivateKey | |
| private PublicKey | |
| private PGPKdfParameters | |
| private PrivateKey | |
| private PrivateKey | |
| private PublicKey | |
| private PublicKey | |
| private static byte[] | |
| public JcaPGPKeyConverter | |
| public JcaPGPKeyConverter |
| DEFAULT_KDF_PARAMETERS | back to summary |
|---|---|
| private static final PGPKdfParameters DEFAULT_KDF_PARAMETERS | |
| ED25519_KEY_SIZE | back to summary |
|---|---|
| private static final int ED25519_KEY_SIZE | |
| fingerPrintCalculator | back to summary |
|---|---|
| private KeyFingerPrintCalculator fingerPrintCalculator | |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| X25519_KEY_SIZE | back to summary |
|---|---|
| private static final int X25519_KEY_SIZE | |
| JcaPGPKeyConverter | back to summary |
|---|---|
| public JcaPGPKeyConverter() | |
| getECParameterSpec | back to summary |
|---|---|
| private ECParameterSpec getECParameterSpec(ASN1ObjectIdentifier curveOid) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidParameterSpecException | |
| getECParameterSpec | back to summary |
|---|---|
| private ECParameterSpec getECParameterSpec(ASN1ObjectIdentifier curveOid, X9ECParameters x9Params) throws InvalidParameterSpecException, NoSuchProviderException, NoSuchAlgorithmException | |
| getPGPPrivateKey | back to summary |
|---|---|
| public PGPPrivateKey getPGPPrivateKey(PGPPublicKey pub, PrivateKey privKey) throws PGPException Convert a PrivateKey into a PGPPrivateKey.
| |
| getPGPPublicKey | back to summary |
|---|---|
| public PGPPublicKey getPGPPublicKey(int algorithm, PGPAlgorithmParameters algorithmParameters, PublicKey pubKey, Date time) throws PGPException Create a PGPPublicKey from the passed in JCA one. 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.
| |
| getPGPPublicKey | back to summary |
|---|---|
| public PGPPublicKey getPGPPublicKey(int algorithm, PublicKey pubKey, Date time) throws PGPException Create a PGPPublicKey from the passed in JCA one. 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.
| |
| getPrivateBCPGKey | back to summary |
|---|---|
| private BCPGKey getPrivateBCPGKey(PGPPublicKey pub, PrivateKey privKey) throws PGPException | |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey(PGPPrivateKey privKey) throws PGPException | |
| getPublicBCPGKey | back to summary |
|---|---|
| private BCPGKey getPublicBCPGKey(int algorithm, PGPAlgorithmParameters algorithmParameters, PublicKey pubKey, Date time) throws PGPException | |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey(PGPPublicKey publicKey) throws PGPException | |
| implGeneratePrivate | back to summary |
|---|---|
| private PrivateKey implGeneratePrivate(String keyAlgorithm, KeySpec keySpec) throws GeneralSecurityException, PGPException | |
| implGeneratePublic | back to summary |
|---|---|
| private PublicKey implGeneratePublic(String keyAlgorithm, KeySpec keySpec) throws GeneralSecurityException, PGPException | |
| implGetKdfParameters | back to summary |
|---|---|
| private PGPKdfParameters implGetKdfParameters(PGPAlgorithmParameters algorithmParameters) | |
| implGetPrivateKeyEC | back to summary |
|---|---|
| private PrivateKey implGetPrivateKeyEC(String keyAlgorithm, ECPublicBCPGKey ecPub, ECSecretBCPGKey ecPriv) throws GeneralSecurityException, PGPException | |
| implGetPrivateKeyPKCS8 | back to summary |
|---|---|
| private PrivateKey implGetPrivateKeyPKCS8(String keyAlgorithm, PrivateKeyInfo privateKeyInfo) throws GeneralSecurityException, IOException, PGPException | |
| implGetPublicKeyEC | back to summary |
|---|---|
| private PublicKey implGetPublicKeyEC(String keyAlgorithm, ECPublicBCPGKey ecPub) throws GeneralSecurityException, IOException, PGPException | |
| implGetPublicKeyX509 | back to summary |
|---|---|
| private PublicKey implGetPublicKeyX509(String keyAlgorithm, SubjectPublicKeyInfo subjectPublicKeyInfo) throws GeneralSecurityException, IOException, PGPException | |
| reverseInPlace | back to summary |
|---|---|
| private static byte[] reverseInPlace(byte[] a) | |
| setProvider | back to summary |
|---|---|
| public JcaPGPKeyConverter setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JcaPGPKeyConverter setProvider(String providerName) | |