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,
PBESecretKeyDecryptor oldKeyDecryptor,
PBESecretKeyEncryptor newKeyEncryptor)
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.parseSecretKeyFromSExpr(java.io.InputStream inputStream,
PBEProtectionRemoverFactory keyProtectionRemoverFactory,
KeyFingerPrintCalculator fingerPrintCalculator)
Parse a secret key from one of the GPG S expression keys.
|
static PGPSecretKey |
PGPSecretKey.parseSecretKeyFromSExpr(java.io.InputStream inputStream,
PBEProtectionRemoverFactory keyProtectionRemoverFactory,
PGPPublicKey pubKey)
Parse a secret key from one of the GPG S expression keys associating it with the passed in public key.
|
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 |
---|---|
java.util.Iterator<PGPSecretKey> |
PGPSecretKeyRing.getSecretKeys()
Return an iterator containing all the secret keys.
|
java.util.Iterator<PGPSecretKey> |
PGPSecretKeyRing.iterator()
Support method for Iterable where available.
|
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.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.
|