Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
org.bouncycastle.openpgp.bc |
BC light weight based OpenPGP objects.
|
org.bouncycastle.openpgp.jcajce |
JCA/JCE provider based OpenPGP objects.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
---|---|
java.util.Iterator<PGPSecretKeyRing> |
PGPSecretKeyRingCollection.getKeyRings()
return the secret key rings making up this collection.
|
java.util.Iterator<PGPSecretKeyRing> |
PGPSecretKeyRingCollection.getKeyRings(java.lang.String userID)
Return an iterator of the key rings associated with the passed in userID.
|
java.util.Iterator<PGPSecretKeyRing> |
PGPSecretKeyRingCollection.getKeyRings(java.lang.String userID,
boolean matchPartial)
Return an iterator of the key rings associated with the passed in userID.
|
java.util.Iterator<PGPSecretKeyRing> |
PGPSecretKeyRingCollection.getKeyRings(java.lang.String userID,
boolean matchPartial,
boolean ignoreCase)
Return an iterator of the key rings associated with the passed in userID.
|
java.util.Iterator<PGPSecretKeyRing> |
PGPSecretKeyRingCollection.iterator()
Support method for Iterable where available.
|
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,
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.
|
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.
|
Constructor and Description |
---|
PGPSecretKeyRingCollection(java.util.Collection<PGPSecretKeyRing> collection) |
Modifier and Type | Class and Description |
---|---|
class |
BcPGPSecretKeyRing |
Modifier and Type | Class and Description |
---|---|
class |
JcaPGPSecretKeyRing |