Class SignatureCheck
java.lang.Object
org.pgpainless.signature.consumer.SignatureCheck
Tuple-class which bundles together a signature, the signing key that created the signature,
an identifier of the signing key and a record of whether the signature was verified.
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureCheck
(org.bouncycastle.openpgp.PGPSignature signature, org.bouncycastle.openpgp.PGPKeyRing signingKeyRing, SubkeyIdentifier signingKeyIdentifier) Create a newSignatureCheck
object. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.bouncycastle.openpgp.PGPSignature
Return the OpenPGP signature.Return an identifier pointing to the exact signing key which was used to create this signature.org.bouncycastle.openpgp.PGPKeyRing
Return the key ring that contains the signing key that created this signature.
-
Constructor Details
-
SignatureCheck
public SignatureCheck(org.bouncycastle.openpgp.PGPSignature signature, org.bouncycastle.openpgp.PGPKeyRing signingKeyRing, SubkeyIdentifier signingKeyIdentifier) Create a newSignatureCheck
object.- Parameters:
signature
- signaturesigningKeyRing
- signing key that created the signaturesigningKeyIdentifier
- identifier of the used signing key
-
-
Method Details
-
getSignature
public org.bouncycastle.openpgp.PGPSignature getSignature()Return the OpenPGP signature.- Returns:
- signature
-
getSigningKeyIdentifier
Return an identifier pointing to the exact signing key which was used to create this signature.- Returns:
- signing key identifier
-
getSigningKeyRing
public org.bouncycastle.openpgp.PGPKeyRing getSigningKeyRing()Return the key ring that contains the signing key that created this signature.- Returns:
- key ring
-
getFingerprint
Deprecated.usegetSigningKeyIdentifier()
instead. TODO: Remove in 1.2.XReturn theOpenPgpFingerprint
of the key that created the signature.- Returns:
- fingerprint of the signing key
-
getSigningKeyIdentifier()
instead.