Java org.bouncycastle.openpgp PGPPublicKey fields, constructors, methods, implement or subclass

Example usage for Java org.bouncycastle.openpgp PGPPublicKey fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.bouncycastle.openpgp PGPPublicKey.

The text is from its open source code.

Method

PGPPublicKeyaddCertification(PGPPublicKey key, byte[] rawID, PGPSignature certification)
Add a certification for an id to the given public key.
PGPPublicKeyaddCertification(PGPPublicKey key, String id, PGPSignature certification)
Add a certification for an id to the given public key.
PGPPublicKeyaddCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes, PGPSignature certification)
Add a certification for the given UserAttributeSubpackets to the given public key.
PGPPublicKeyaddCertification(PGPPublicKey key, PGPSignature certification)
Add a revocation or some other key certification to a key.
voidencode(OutputStream outStream)
intgetAlgorithm()
Return the algorithm code associated with the public key.
intgetBitStrength()
Return the strength of the key in bits.
DategetCreationTime()
byte[]getEncoded()
byte[]getFingerprint()
Return the fingerprint of the key.
longgetKeyID()
Return the keyID associated with the public key.
IteratorgetKeySignatures()
Return all signatures/certifications directly associated with this key (ie, not to a user id).
PublicKeyPacketgetPublicKeyPacket()
IteratorgetRawUserIDs()
Return any userIDs associated with the key in raw byte form.
IteratorgetSignatures()
Return all signatures/certifications associated with this key.
IteratorgetSignaturesForID(String id)
Return any signatures associated with the passed in id.
IteratorgetSignaturesForID(byte[] rawID)
Return any signatures associated with the passed in id.
IteratorgetSignaturesForID(UserIDPacket id)
IteratorgetSignaturesForUserAttribute(PGPUserAttributeSubpacketVector userAttributes)
Return an iterator of signatures associated with the passed in user attributes.
IteratorgetSignaturesOfType(int signatureType)
Return signatures of the passed in type that are on this key.
IteratorgetUserAttributes()
Return any user attribute vectors associated with the key.
IteratorgetUserIDs()
Return any userIDs associated with the key.
intgetValidDays()
longgetValidSeconds()
booleanhasRevocation()
Check whether this (sub)key has a revocation signature on it.
booleanisEncryptionKey()
Return true if this key has an algorithm type that makes it suitable to use for encryption.
booleanisMasterKey()
Return true if this is a master key.
booleanisRevoked()
Check whether this (sub)key has a revocation signature on it.
PGPPublicKeyremoveCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes)
Remove any certifications associated with a given user attribute subpacket on a key.
PGPPublicKeyremoveCertification(PGPPublicKey key, String id)
Remove any certifications associated with a given id on a key.
PGPPublicKeyremoveCertification(PGPPublicKey key, byte[] rawID)
Remove any certifications associated with a given id on a key.
PGPPublicKeyremoveCertification(PGPPublicKey key, PGPSignature certification)
Remove a certification from the key.
PGPPublicKeyremoveCertification(PGPPublicKey key, byte[] id, PGPSignature certification)
Remove a certification associated with a given id on a key.
PGPPublicKeyremoveCertification(PGPPublicKey key, String id, PGPSignature certification)
Remove a certification associated with a given id on a key.
PGPPublicKeyremoveCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes, PGPSignature certification)
Remove a certification associated with a given user attributes on a key.