Class SignatureVerification
java.lang.Object
org.pgpainless.decryption_verification.SignatureVerification
Tuple of a signature and an identifier of its corresponding verification key.
Semantic meaning of the signature verification (success, failure) is merely given by context.
E.g.
OpenPgpMetadata.getVerifiedInbandSignatures()
contains verified verifications,
while the class SignatureVerification.Failure
contains failed verifications.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Tuple object of aSignatureVerification
and the correspondingSignatureValidationException
that caused the verification to fail. -
Constructor Summary
ConstructorsConstructorDescriptionSignatureVerification
(org.bouncycastle.openpgp.PGPSignature signature, SubkeyIdentifier signingKey) Construct a verification tuple. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.openpgp.PGPSignature
Return thePGPSignature
.Return aSubkeyIdentifier
of the (sub-) key that is used for signature verification.toString()
-
Constructor Details
-
SignatureVerification
public SignatureVerification(org.bouncycastle.openpgp.PGPSignature signature, @Nullable SubkeyIdentifier signingKey) Construct a verification tuple.- Parameters:
signature
- PGPSignature objectsigningKey
- identifier of the signing key
-
-
Method Details
-
getSignature
public org.bouncycastle.openpgp.PGPSignature getSignature()Return thePGPSignature
.- Returns:
- signature
-
getSigningKey
Return aSubkeyIdentifier
of the (sub-) key that is used for signature verification. Note, that this method might return null, e.g. in case of aSignatureVerification.Failure
due to missing verification key.- Returns:
- verification key identifier
-
toString
-