Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
Modifier and Type | Method and Description |
---|---|
static PGPSecretKeyRing |
PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing ring,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.security.Provider provider)
Return a copy of the passed in secret key ring, with the master key and sub keys encrypted
using a new password and the passed in algorithm.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing ring,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.lang.String provider)
Return a copy of the passed in secret key ring, with the master key and sub keys encrypted
using a new password and the passed in algorithm.
|
PGPSecretKeyRing |
PGPKeyRingGenerator.generateSecretKeyRing()
Return the secret key ring.
|
PGPSecretKeyRing |
PGPSecretKeyRingCollection.getSecretKeyRing(long keyID)
Return the secret key ring which contains the key referred to by keyID.
|
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 PGPSecretKeyRing |
PGPSecretKeyRing.replacePublicKeys(PGPSecretKeyRing secretRing,
PGPPublicKeyRing publicRing)
Replace the public key set on the secret ring with the corresponding key off the public ring.
|
Modifier and Type | Method and Description |
---|---|
static PGPSecretKeyRingCollection |
PGPSecretKeyRingCollection.addSecretKeyRing(PGPSecretKeyRingCollection ringCollection,
PGPSecretKeyRing secretKeyRing)
Return a new collection object containing the contents of the passed in collection and
the passed in secret key ring.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing ring,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.security.Provider provider)
Return a copy of the passed in secret key ring, with the master key and sub keys encrypted
using a new password and the passed in algorithm.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing ring,
char[] oldPassPhrase,
char[] newPassPhrase,
int newEncAlgorithm,
java.security.SecureRandom rand,
java.lang.String provider)
Return a copy of the passed in secret key ring, with the master key and sub keys 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 PGPSecretKeyRingCollection |
PGPSecretKeyRingCollection.removeSecretKeyRing(PGPSecretKeyRingCollection ringCollection,
PGPSecretKeyRing secretKeyRing)
Return a new collection object containing the contents of this collection with
the passed in secret key ring removed.
|
static PGPSecretKeyRing |
PGPSecretKeyRing.replacePublicKeys(PGPSecretKeyRing secretRing,
PGPPublicKeyRing publicRing)
Replace the public key set on the secret ring with the corresponding key off the public ring.
|