Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
org.bouncycastle.openpgp.operator |
Interfaces and abstract classes to provide the framework to support operations on the OpenPGP high level classes.
|
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 | Field and Description |
---|---|
protected PGPPublicKey |
PGPKeyPair.pub |
Modifier and Type | Method and Description |
---|---|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
byte[] rawID,
PGPSignature certification)
Add a certification for an id to the given public key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
PGPSignature certification)
Add a revocation or some other key certification to a key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes,
PGPSignature certification)
Add a certification for the given UserAttributeSubpackets to the given public key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
java.lang.String id,
PGPSignature certification)
Add a certification for an id to the given public key.
|
PGPPublicKey |
PGPSecretKeyRing.getPublicKey()
Return the public key for the master key.
|
PGPPublicKey |
PGPSecretKey.getPublicKey()
Return the public key associated with this key.
|
PGPPublicKey |
PGPPublicKeyRing.getPublicKey()
Return the first public key in the ring.
|
abstract PGPPublicKey |
PGPKeyRing.getPublicKey()
Return the first public key in the ring.
|
PGPPublicKey |
PGPKeyPair.getPublicKey() |
PGPPublicKey |
PGPSecretKeyRing.getPublicKey(long keyID)
Return the public key referred to by the passed in keyID if it
is present.
|
PGPPublicKey |
PGPPublicKeyRingCollection.getPublicKey(long keyID)
Return the PGP public key associated with the given key id.
|
PGPPublicKey |
PGPPublicKeyRing.getPublicKey(long keyID)
Return the public key referred to by the passed in keyID if it
is present.
|
abstract PGPPublicKey |
PGPKeyRing.getPublicKey(long keyID)
Return the public key referred to by the passed in keyID if it
is present.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
byte[] rawID)
Remove any certifications associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
byte[] id,
PGPSignature certification)
Remove a certification associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPSignature certification)
Remove a certification from the key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes)
Remove any certifications associated with a given user attribute subpacket
on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes,
PGPSignature certification)
Remove a certification associated with a given user attributes on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
java.lang.String id)
Remove any certifications associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
java.lang.String id,
PGPSignature certification)
Remove a certification associated with a given id on a key.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<PGPPublicKey> |
PGPSecretKeyRing.getExtraPublicKeys()
Return an iterator of the public keys in the secret key ring that
have no matching private key.
|
java.util.Iterator<PGPPublicKey> |
PGPSecretKeyRing.getPublicKeys()
Return an iterator containing all the public keys.
|
java.util.Iterator<PGPPublicKey> |
PGPPublicKeyRing.getPublicKeys()
Return an iterator containing all the public keys.
|
java.util.Iterator<PGPPublicKey> |
PGPPublicKeyRing.iterator()
Support method for Iterable where available.
|
Modifier and Type | Method and Description |
---|---|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
byte[] rawID,
PGPSignature certification)
Add a certification for an id to the given public key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
PGPSignature certification)
Add a revocation or some other key certification to a key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes,
PGPSignature certification)
Add a certification for the given UserAttributeSubpackets to the given public key.
|
static PGPPublicKey |
PGPPublicKey.addCertification(PGPPublicKey key,
java.lang.String id,
PGPSignature certification)
Add a certification for an id to the given public key.
|
PGPSignature |
PGPSignatureGenerator.generateCertification(PGPPublicKey pubKey)
Generate a certification, such as a revocation, for the passed in key.
|
PGPSignature |
PGPSignatureGenerator.generateCertification(PGPPublicKey masterKey,
PGPPublicKey pubKey)
Generate a certification for the passed in key against the passed in
master key.
|
PGPSignature |
PGPSignatureGenerator.generateCertification(PGPUserAttributeSubpacketVector userAttributes,
PGPPublicKey pubKey)
Generate a certification for the passed in userAttributes
|
PGPSignature |
PGPSignatureGenerator.generateCertification(java.lang.String id,
PGPPublicKey pubKey)
Generate a certification for the passed in id and key.
|
void |
PGPSignature.init(PGPContentVerifierBuilderProvider verifierBuilderProvider,
PGPPublicKey pubKey) |
void |
PGPOnePassSignature.init(PGPContentVerifierBuilderProvider verifierBuilderProvider,
PGPPublicKey pubKey)
Initialise the signature object for verification.
|
static PGPPublicKeyRing |
PGPPublicKeyRing.insertPublicKey(PGPPublicKeyRing pubRing,
PGPPublicKey pubKey)
Returns a new key ring with the public key passed in
either added or replacing an existing one.
|
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 PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
byte[] rawID)
Remove any certifications associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
byte[] id,
PGPSignature certification)
Remove a certification associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPSignature certification)
Remove a certification from the key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes)
Remove any certifications associated with a given user attribute subpacket
on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
PGPUserAttributeSubpacketVector userAttributes,
PGPSignature certification)
Remove a certification associated with a given user attributes on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
java.lang.String id)
Remove any certifications associated with a given id on a key.
|
static PGPPublicKey |
PGPPublicKey.removeCertification(PGPPublicKey key,
java.lang.String id,
PGPSignature certification)
Remove a certification associated with a given id on a key.
|
static PGPPublicKeyRing |
PGPPublicKeyRing.removePublicKey(PGPPublicKeyRing pubRing,
PGPPublicKey pubKey)
Returns a new key ring with the public 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.
|
boolean |
PGPSignature.verifyCertification(byte[] rawID,
PGPPublicKey key)
Verify the signature as certifying the passed in public key as associated
with the passed in rawID.
|
boolean |
PGPSignature.verifyCertification(PGPPublicKey pubKey)
Verify a key certification, such as a revocation, for the passed in key.
|
boolean |
PGPSignature.verifyCertification(PGPPublicKey masterKey,
PGPPublicKey pubKey)
Verify a certification for the passed in key against the passed in
master key.
|
boolean |
PGPSignature.verifyCertification(PGPUserAttributeSubpacketVector userAttributes,
PGPPublicKey key)
Verify the signature as certifying the passed in public key as associated
with the passed in user attributes.
|
boolean |
PGPSignature.verifyCertification(java.lang.String id,
PGPPublicKey key)
Verify the signature as certifying the passed in public key as associated
with the passed in id.
|
Constructor and Description |
---|
PGPKeyPair(PGPPublicKey pub,
PGPPrivateKey priv)
Create a key pair from a PGPPrivateKey and a PGPPublicKey.
|
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 |
---|---|
PGPContentVerifier |
PGPContentVerifierBuilder.build(PGPPublicKey publicKey) |
protected abstract byte[] |
PublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo) |
Constructor and Description |
---|
PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey) |
Modifier and Type | Method and Description |
---|---|
PGPPublicKey |
BcPGPKeyConverter.getPGPPublicKey(int algorithm,
PGPAlgorithmParameters algorithmParameters,
org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey,
java.util.Date time)
Create a PGPPublicKey from the passed in JCA one.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
BcPublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo) |
PGPPrivateKey |
BcPGPKeyConverter.getPGPPrivateKey(PGPPublicKey pubKey,
org.bouncycastle.crypto.params.AsymmetricKeyParameter privKey) |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
BcPGPKeyConverter.getPublicKey(PGPPublicKey publicKey) |
Constructor and Description |
---|
BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
Create a public key encryption method generator with the method to be based on the passed in key.
|
Modifier and Type | Method and Description |
---|---|
PGPPublicKey |
JcaPGPKeyConverter.getPGPPublicKey(int algorithm,
PGPAlgorithmParameters algorithmParameters,
java.security.PublicKey pubKey,
java.util.Date time)
Create a PGPPublicKey from the passed in JCA one.
|
PGPPublicKey |
JcaPGPKeyConverter.getPGPPublicKey(int algorithm,
java.security.PublicKey pubKey,
java.util.Date time)
Create a PGPPublicKey from the passed in JCA one.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
JcePublicKeyKeyEncryptionMethodGenerator.encryptSessionInfo(PGPPublicKey pubKey,
byte[] sessionInfo) |
PGPPrivateKey |
JcaPGPKeyConverter.getPGPPrivateKey(PGPPublicKey pub,
java.security.PrivateKey privKey)
Convert a PrivateKey into a PGPPrivateKey.
|
java.security.PublicKey |
JcaPGPKeyConverter.getPublicKey(PGPPublicKey publicKey) |
Constructor and Description |
---|
JcaPGPPrivateKey(PGPPublicKey pubKey,
java.security.PrivateKey privateKey) |
JcePublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
Create a public key encryption method generator with the method to be based on the passed in key.
|