|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPSignatureVerifierBuilder
Builder for thread-safe verifiers for a range of PGP signature types.
Constructor Summary | |
PGPSignatureVerifierBuilder(PGPContentVerifierBuilderProvider verifierBuilderProvider,
PGPPublicKey verificationKey)
Base constructor. |
Method Summary | |
PGPSignatureVerifier |
buildCertificationVerifier(PGPSignature certification,
byte[] rawUserID,
PGPPublicKey publicKey)
Return a verifier for a signature as certifying the passed in public key as associated with the passed in raw user ID. |
PGPSignatureVerifier |
buildCertificationVerifier(PGPSignature certification,
PGPUserAttributeSubpacketVector userAttributes,
PGPPublicKey publicKey)
Return a verifier for a signature as certifying the passed in public key as associated with the passed in user attributes. |
PGPSignatureVerifier |
buildCertificationVerifier(PGPSignature certification,
java.lang.String userID,
PGPPublicKey publicKey)
Return a verifier for a signature as certifying the passed in public key as associated with the passed in user ID. |
PGPSignatureVerifier |
buildDirectKeyVerifier(PGPSignature certification,
PGPPublicKey publicKey)
Instantiate a signature verifier for a PGPSignature.DIRECT_KEY signature. |
PGPSignatureVerifier |
buildKeyRevocationVerifier(PGPSignature certification,
PGPPublicKey publicKey)
Instantiate a signature verifier for a PGPSignature.KEY_REVOCATION signature. |
PGPSignatureVerifier |
buildPrimaryKeyBindingVerifier(PGPSignature certification,
PGPPublicKey primaryKey,
PGPPublicKey subKey)
Instantiate a signature verifier for a PGPSignature.PRIMARYKEY_BINDING signature. |
PGPSignatureVerifier |
buildSubKeyBindingVerifier(PGPSignature certification,
PGPPublicKey primaryKey,
PGPPublicKey subKey)
Instantiate a signature verifier for a PGPSignature.SUBKEY_BINDING signature. |
PGPSignatureVerifier |
buildSubKeyRevocationVerifier(PGPSignature certification,
PGPPublicKey primaryKey,
PGPPublicKey subKey)
Instantiate a signature verifier for a PGPSignature.SUBKEY_REVOCATION signature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PGPSignatureVerifierBuilder(PGPContentVerifierBuilderProvider verifierBuilderProvider, PGPPublicKey verificationKey)
verifierBuilderProvider
- provider to build verifiers from.verificationKey
- the public key which corresponds to the signing key generating the signatures we are looking at.Method Detail |
public PGPSignatureVerifier buildDirectKeyVerifier(PGPSignature certification, PGPPublicKey publicKey) throws PGPException
PGPSignature.DIRECT_KEY
signature.certification
- the PGP signature containing the certification.publicKey
- public key subject for the direct key signature.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildKeyRevocationVerifier(PGPSignature certification, PGPPublicKey publicKey) throws PGPException
PGPSignature.KEY_REVOCATION
signature.certification
- the PGP signature containing the certification.publicKey
- public key subject for key revocation signature.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildPrimaryKeyBindingVerifier(PGPSignature certification, PGPPublicKey primaryKey, PGPPublicKey subKey) throws PGPException
PGPSignature.PRIMARYKEY_BINDING
signature.certification
- the PGP signature containing the certification.primaryKey
- primary key for the primary key binding signature.subKey
- sub-key for the primary key binding signature.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildSubKeyBindingVerifier(PGPSignature certification, PGPPublicKey primaryKey, PGPPublicKey subKey) throws PGPException
PGPSignature.SUBKEY_BINDING
signature.certification
- the PGP signature containing the certification.primaryKey
- primary key for the sub-key binding signature.subKey
- sub-key for the sub-key binding signature.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildSubKeyRevocationVerifier(PGPSignature certification, PGPPublicKey primaryKey, PGPPublicKey subKey) throws PGPException
PGPSignature.SUBKEY_REVOCATION
signature.certification
- the PGP signature containing the certification.primaryKey
- primary key for the sub-key key revocation signature.subKey
- sub-key for the sub-key key revocation signature.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildCertificationVerifier(PGPSignature certification, java.lang.String userID, PGPPublicKey publicKey) throws PGPException
userID
- the user ID, will be converted to UTF8.publicKey
- the key to be verified.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildCertificationVerifier(PGPSignature certification, byte[] rawUserID, PGPPublicKey publicKey) throws PGPException
rawUserID
- raw encoding of the user ID (assumed a UTF8 string, not user attributes)publicKey
- the key to be verified.PGPException
- if signature type is wrong or there is a problem constructing the verifier.public PGPSignatureVerifier buildCertificationVerifier(PGPSignature certification, PGPUserAttributeSubpacketVector userAttributes, PGPPublicKey publicKey) throws PGPException
userAttributes
- user attributes the key was stored underpublicKey
- the key to be verified.PGPException
- if signature type is wrong or there is a problem constructing the verifier.
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |