Package | Description |
---|---|
org.bouncycastle.openpgp |
High level classes for dealing with OpenPGP objects.
|
Modifier and Type | Method and Description |
---|---|
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.
|
PGPPublicKey |
PGPKeyPair.getPublicKey() |
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.
|
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 |
---|---|
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.
|
void |
PGPEncryptedDataGenerator.addMethod(PGPPublicKey key)
Add a public key encrypted session key to the encrypted object.
|
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.initVerify(PGPPublicKey pubKey,
java.security.Provider provider) |
void |
PGPOnePassSignature.initVerify(PGPPublicKey pubKey,
java.security.Provider provider)
Initialise the signature object for verification.
|
void |
PGPSignature.initVerify(PGPPublicKey pubKey,
java.lang.String provider) |
void |
PGPOnePassSignature.initVerify(PGPPublicKey pubKey,
java.lang.String provider)
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 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(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.
|