Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
org.bouncycastle.openpgp.operator.bc |
BC lightweight operators for dealing with OpenPGP objects.
|
org.bouncycastle.openpgp.operator.jcajce |
JCA/JCE based operators for dealing with OpenPGP objects.
|
Modifier and Type | Method and Description |
---|---|
static PGPSecretKey |
PGPSecretKey.copyWithNewPassword(PGPSecretKey key,
PBESecretKeyDecryptor oldKeyDecryptor,
PBESecretKeyEncryptor newKeyEncryptor)
Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing ring,
PBESecretKeyDecryptor oldKeyDecryptor,
PBESecretKeyEncryptor newKeyEncryptor)
Return a copy of the passed in secret key ring, with the private keys (where present) associated with the master key and sub keys
are encrypted using a new password and the passed in algorithm.
|
Constructor and Description |
---|
PGPKeyRingGenerator(int certificationLevel,
PGPKeyPair masterKey,
java.lang.String id,
PGPDigestCalculator checksumCalculator,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
PGPContentSignerBuilder keySignerBuilder,
PBESecretKeyEncryptor keyEncryptor)
Create a new key ring generator.
|
PGPSecretKey(int certificationLevel,
PGPKeyPair keyPair,
java.lang.String id,
PGPDigestCalculator checksumCalculator,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
PGPContentSignerBuilder certificationSignerBuilder,
PBESecretKeyEncryptor keyEncryptor)
Construct a PGPSecretKey using the passed in private/public key pair and binding it to the passed in id
using a generated certification of certificationLevel.
|
PGPSecretKey(int certificationLevel,
PGPKeyPair keyPair,
java.lang.String id,
PGPSignatureSubpacketVector hashedPcks,
PGPSignatureSubpacketVector unhashedPcks,
PGPContentSignerBuilder certificationSignerBuilder,
PBESecretKeyEncryptor keyEncryptor)
Construct a PGPSecretKey using the passed in private/public key pair and binding it to the passed in id
using a generated certification of certificationLevel.The secret key checksum is calculated using the original
non-digest based checksum.
|
PGPSecretKey(PGPPrivateKey privKey,
PGPPublicKey pubKey,
PGPDigestCalculator checksumCalculator,
boolean isMasterKey,
PBESecretKeyEncryptor keyEncryptor)
Construct a PGPSecretKey using the passed in private key and public key.
|
Modifier and Type | Method and Description |
---|---|
PBESecretKeyEncryptor |
BcPBESecretKeyEncryptorBuilder.build(char[] passPhrase) |
Modifier and Type | Method and Description |
---|---|
PBESecretKeyEncryptor |
JcePBESecretKeyEncryptorBuilder.build(char[] passPhrase) |