Example usage for Java org.bouncycastle.openpgp PGPPublicKey fields, constructors, methods, implement or subclass
The text is from its open source code.
PGPPublicKey | addCertification(PGPPublicKey key, byte[] rawID, PGPSignature certification) Add a certification for an id to the given public key. |
PGPPublicKey | addCertification(PGPPublicKey key, String id, PGPSignature certification) Add a certification for an id to the given public key. |
PGPPublicKey | addCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes, PGPSignature certification) Add a certification for the given UserAttributeSubpackets to the given public key. |
PGPPublicKey | addCertification(PGPPublicKey key, PGPSignature certification) Add a revocation or some other key certification to a key. |
void | encode(OutputStream outStream) |
int | getAlgorithm() Return the algorithm code associated with the public key. |
int | getBitStrength() Return the strength of the key in bits. |
Date | getCreationTime() |
byte[] | getEncoded() |
byte[] | getFingerprint() Return the fingerprint of the key. |
long | getKeyID() Return the keyID associated with the public key. |
Iterator | getKeySignatures() Return all signatures/certifications directly associated with this key (ie, not to a user id). |
PublicKeyPacket | getPublicKeyPacket() |
Iterator | getRawUserIDs() Return any userIDs associated with the key in raw byte form. |
Iterator | getSignatures() Return all signatures/certifications associated with this key. |
Iterator | getSignaturesForID(String id) Return any signatures associated with the passed in id. |
Iterator | getSignaturesForID(byte[] rawID) Return any signatures associated with the passed in id. |
Iterator | getSignaturesForID(UserIDPacket id) |
Iterator | getSignaturesForUserAttribute(PGPUserAttributeSubpacketVector userAttributes) Return an iterator of signatures associated with the passed in user attributes. |
Iterator | getSignaturesOfType(int signatureType) Return signatures of the passed in type that are on this key. |
Iterator | getUserAttributes() Return any user attribute vectors associated with the key. |
Iterator | getUserIDs() Return any userIDs associated with the key. |
int | getValidDays() |
long | getValidSeconds() |
boolean | hasRevocation() Check whether this (sub)key has a revocation signature on it. |
boolean | isEncryptionKey() Return true if this key has an algorithm type that makes it suitable to use for encryption. |
boolean | isMasterKey() Return true if this is a master key. |
boolean | isRevoked() Check whether this (sub)key has a revocation signature on it. |
PGPPublicKey | removeCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes) Remove any certifications associated with a given user attribute subpacket on a key. |
PGPPublicKey | removeCertification(PGPPublicKey key, String id) Remove any certifications associated with a given id on a key. |
PGPPublicKey | removeCertification(PGPPublicKey key, byte[] rawID) Remove any certifications associated with a given id on a key. |
PGPPublicKey | removeCertification(PGPPublicKey key, PGPSignature certification) Remove a certification from the key. |
PGPPublicKey | removeCertification(PGPPublicKey key, byte[] id, PGPSignature certification) Remove a certification associated with a given id on a key. |
PGPPublicKey | removeCertification(PGPPublicKey key, String id, PGPSignature certification) Remove a certification associated with a given id on a key. |
PGPPublicKey | removeCertification(PGPPublicKey key, PGPUserAttributeSubpacketVector userAttributes, PGPSignature certification) Remove a certification associated with a given user attributes on a key. |