Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
Modifier and Type | Method and Description |
---|---|
static PGPSecretKey |
PGPSecretKey.copyWithNewPassword(PGPSecretKey key,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.security.Provider provider)
Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
|
static PGPSecretKey |
PGPSecretKey.copyWithNewPassword(PGPSecretKey key,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.lang.String provider)
Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
|
PGPSecretKey |
PGPSecretKeyRing.getSecretKey()
Return the master private key.
|
PGPSecretKey |
PGPSecretKeyRingCollection.getSecretKey(long keyID)
Return the PGP secret key associated with the given key id.
|
PGPSecretKey |
PGPSecretKeyRing.getSecretKey(long keyId) |
static PGPSecretKey |
PGPSecretKey.replacePublicKey(PGPSecretKey secretKey,
PGPPublicKey publicKey)
Replace the passed the public key on the passed in secret key.
|
Modifier and Type | Method and Description |
---|---|
static PGPSecretKey |
PGPSecretKey.copyWithNewPassword(PGPSecretKey key,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.security.Provider provider)
Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
|
static PGPSecretKey |
PGPSecretKey.copyWithNewPassword(PGPSecretKey key,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.lang.String provider)
Return a copy of the passed in secret key, encrypted using a new
password and the passed in algorithm.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.insertSecretKey(PGPSecretKeyRing secRing,
PGPSecretKey secKey)
Returns a new key ring with the secret key passed in either added or
replacing an existing one with the same key ID.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.removeSecretKey(PGPSecretKeyRing secRing,
PGPSecretKey secKey)
Returns a new key ring with the secret key passed in removed from the
key ring.
|
static PGPSecretKey |
PGPSecretKey.replacePublicKey(PGPSecretKey secretKey,
PGPPublicKey publicKey)
Replace the passed the public key on the passed in secret key.
|