Class DetachedSignatureCheck
java.lang.Object
org.pgpainless.signature.consumer.DetachedSignatureCheck
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
ConstructorsConstructorDescriptionDetachedSignatureCheck(org.bouncycastle.openpgp.PGPSignature signature, org.bouncycastle.openpgp.PGPKeyRing signingKeyRing, SubkeyIdentifier signingKeyIdentifier) Create a newDetachedSignatureCheckobject. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.bouncycastle.openpgp.PGPSignatureReturn the OpenPGP signature.Return an identifier pointing to the exact signing key which was used to create this signature.org.bouncycastle.openpgp.PGPKeyRingReturn the key ring that contains the signing key that created this signature.
-
Constructor Details
-
DetachedSignatureCheck
public DetachedSignatureCheck(org.bouncycastle.openpgp.PGPSignature signature, org.bouncycastle.openpgp.PGPKeyRing signingKeyRing, SubkeyIdentifier signingKeyIdentifier) Create a newDetachedSignatureCheckobject.- 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 theOpenPgpFingerprintof the key that created the signature.- Returns:
- fingerprint of the signing key
-
getSigningKeyIdentifier()instead.