Uses of Class
org.bouncycastle.openpgp.PGPPublicKey
-
Packages that use PGPPublicKey Package Description org.bouncycastle.gpg Parsing classes for the GPG V2 SExpr format and other utilites.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. -
-
Uses of PGPPublicKey in org.bouncycastle.gpg
Methods in org.bouncycastle.gpg with parameters of type PGPPublicKey Modifier and Type Method Description PGPSecretKey
SExprParser. parseSecretKey(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. -
Uses of PGPPublicKey in org.bouncycastle.openpgp
Fields in org.bouncycastle.openpgp declared as PGPPublicKey Modifier and Type Field Description protected PGPPublicKey
PGPKeyPair. pub
Methods in org.bouncycastle.openpgp that return PGPPublicKey Modifier and Type Method 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, String id, 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.PGPPublicKey
PGPKeyPair. getPublicKey()
abstract PGPPublicKey
PGPKeyRing. getPublicKey()
Return the first public key in the ring.abstract PGPPublicKey
PGPKeyRing. getPublicKey(byte[] fingerprint)
Return the public key with the passed in fingerprint 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.PGPPublicKey
PGPPublicKeyRing. getPublicKey()
Return the first public key in the ring.PGPPublicKey
PGPPublicKeyRing. getPublicKey(byte[] fingerprint)
Return the public key with the passed in fingerprint if it is present.PGPPublicKey
PGPPublicKeyRing. getPublicKey(long keyID)
Return the public key referred to by the passed in keyID if it is present.PGPPublicKey
PGPPublicKeyRingCollection. getPublicKey(byte[] fingerprint)
Return the PGP public key associated with the given key fingerprint.PGPPublicKey
PGPPublicKeyRingCollection. getPublicKey(long keyID)
Return the PGP public key associated with the given key id.PGPPublicKey
PGPSecretKey. getPublicKey()
Return the public key associated with this key.PGPPublicKey
PGPSecretKeyRing. getPublicKey()
Return the public key for the master key.PGPPublicKey
PGPSecretKeyRing. getPublicKey(byte[] fingerprint)
Return the public key with the passed in fingerprint if it is present.PGPPublicKey
PGPSecretKeyRing. 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, String id)
Remove any certifications associated with a given id on a key.static PGPPublicKey
PGPPublicKey. removeCertification(PGPPublicKey key, String 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.Methods in org.bouncycastle.openpgp that return types with arguments of type PGPPublicKey Modifier and Type Method Description Iterator<PGPPublicKey>
PGPSecretKeyRing. getExtraPublicKeys()
Return an iterator of the public keys in the secret key ring that have no matching private key.abstract Iterator<PGPPublicKey>
PGPKeyRing. getKeysWithSignaturesBy(long keyID)
Return an iterator containing all the public keys carrying signatures issued from key keyID.Iterator<PGPPublicKey>
PGPPublicKeyRing. getKeysWithSignaturesBy(long keyID)
Return any keys carrying a signature issued by the key represented by keyID.Iterator<PGPPublicKey>
PGPPublicKeyRingCollection. getKeysWithSignaturesBy(long keyID)
Return any keys carrying a signature issued by the key represented by keyID.Iterator<PGPPublicKey>
PGPSecretKeyRing. getKeysWithSignaturesBy(long keyID)
Return any keys carrying a signature issued by the key represented by keyID.abstract Iterator<PGPPublicKey>
PGPKeyRing. getPublicKeys()
Return an iterator containing all the public keys.Iterator<PGPPublicKey>
PGPPublicKeyRing. getPublicKeys()
Return an iterator containing all the public keys.Iterator<PGPPublicKey>
PGPSecretKeyRing. getPublicKeys()
Return an iterator containing all the public keys.Iterator<PGPPublicKey>
PGPPublicKeyRing. iterator()
Support method for Iterable where available.Methods in org.bouncycastle.openpgp with parameters of type PGPPublicKey Modifier and Type Method 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, String id, 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.void
PGPSignatureSubpacketGenerator. addIntendedRecipientFingerprint(boolean isCritical, PGPPublicKey publicKey)
Adds a intended recipient fingerprint for an encrypted payload the signature is associated with.PGPSignature
PGPSignatureGenerator. generateCertification(String id, PGPPublicKey pubKey)
Generate a certification for the passed in id and 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 userAttributesvoid
PGPOnePassSignature. init(PGPContentVerifierBuilderProvider verifierBuilderProvider, PGPPublicKey pubKey)
Initialise the signature object for verification.void
PGPSignature. init(PGPContentVerifierBuilderProvider verifierBuilderProvider, PGPPublicKey pubKey)
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(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey)
Deprecated.use org.bouncycastle.gpg.SExprParser - it will also allow you to verify the protection checksum if it is available.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, String id)
Remove any certifications associated with a given id on a key.static PGPPublicKey
PGPPublicKey. removeCertification(PGPPublicKey key, String 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 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.void
PGPSignatureSubpacketGenerator. setIntendedRecipientFingerprint(boolean isCritical, PGPPublicKey publicKey)
Deprecated.void
PGPSignatureSubpacketGenerator. setIssuerFingerprint(boolean isCritical, PGPPublicKey publicKey)
Sets the signature issuer fingerprint for the signing 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(String id, PGPPublicKey key)
Verify the signature as certifying the passed in public key as associated with the passed in id.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.Constructors in org.bouncycastle.openpgp with parameters of type PGPPublicKey Constructor Description PGPKeyPair(PGPPublicKey pub, PGPPrivateKey priv)
Create a key pair from a PGPPrivateKey and a PGPPublicKey.PGPSecretKey(SecretKeyPacket secret, PGPPublicKey pub)
PGPSecretKey(PGPPrivateKey privKey, PGPPublicKey pubKey, PGPDigestCalculator checksumCalculator, boolean isMasterKey, PBESecretKeyEncryptor keyEncryptor)
Construct a PGPSecretKey using the passed in private key and public key.Constructor parameters in org.bouncycastle.openpgp with type arguments of type PGPPublicKey Constructor Description PGPPublicKeyRing(List<PGPPublicKey> pubKeys)
Base constructor from a list of keys representing a public key ring (a master key and its associated sub-keys). -
Uses of PGPPublicKey in org.bouncycastle.openpgp.operator
Methods in org.bouncycastle.openpgp.operator with parameters of type PGPPublicKey Modifier and Type Method Description PGPContentVerifier
PGPContentVerifierBuilder. build(PGPPublicKey publicKey)
protected abstract byte[]
PublicKeyKeyEncryptionMethodGenerator. encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo)
Constructors in org.bouncycastle.openpgp.operator with parameters of type PGPPublicKey Constructor Description PublicKeyKeyEncryptionMethodGenerator(PGPPublicKey pubKey)
-
Uses of PGPPublicKey in org.bouncycastle.openpgp.operator.bc
Methods in org.bouncycastle.openpgp.operator.bc that return PGPPublicKey Modifier and Type Method Description PGPPublicKey
BcPGPKeyConverter. getPGPPublicKey(int algorithm, PGPAlgorithmParameters algorithmParameters, org.bouncycastle.crypto.params.AsymmetricKeyParameter pubKey, Date time)
Create a PGPPublicKey from the passed in JCA one.Methods in org.bouncycastle.openpgp.operator.bc with parameters of type PGPPublicKey Modifier and Type Method 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)
Constructors in org.bouncycastle.openpgp.operator.bc with parameters of type PGPPublicKey Constructor Description BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
Create a public key encryption method generator with the method to be based on the passed in key. -
Uses of PGPPublicKey in org.bouncycastle.openpgp.operator.jcajce
Methods in org.bouncycastle.openpgp.operator.jcajce that return PGPPublicKey Modifier and Type Method Description PGPPublicKey
JcaPGPKeyConverter. getPGPPublicKey(int algorithm, PublicKey pubKey, Date time)
Create a PGPPublicKey from the passed in JCA one.PGPPublicKey
JcaPGPKeyConverter. getPGPPublicKey(int algorithm, PGPAlgorithmParameters algorithmParameters, PublicKey pubKey, Date time)
Create a PGPPublicKey from the passed in JCA one.Methods in org.bouncycastle.openpgp.operator.jcajce with parameters of type PGPPublicKey Modifier and Type Method Description protected byte[]
JcePublicKeyKeyEncryptionMethodGenerator. encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionInfo)
PGPPrivateKey
JcaPGPKeyConverter. getPGPPrivateKey(PGPPublicKey pub, PrivateKey privKey)
Convert a PrivateKey into a PGPPrivateKey.PublicKey
JcaPGPKeyConverter. getPublicKey(PGPPublicKey publicKey)
Constructors in org.bouncycastle.openpgp.operator.jcajce with parameters of type PGPPublicKey Constructor Description JcaPGPPrivateKey(PGPPublicKey pubKey, PrivateKey privateKey)
JcePublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key)
Create a public key encryption method generator with the method to be based on the passed in key.
-