Class OnePassSignatureCheck
java.lang.Object
org.pgpainless.signature.consumer.OnePassSignatureCheck
Tuple-class that bundles together a
PGPOnePassSignature
object, a PGPPublicKeyRing
destined to verify the signature, the PGPSignature
itself and a record of whether the signature
was verified.-
Constructor Summary
ConstructorsConstructorDescriptionOnePassSignatureCheck
(org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature, org.bouncycastle.openpgp.PGPPublicKeyRing verificationKeys) Create a newOnePassSignatureCheck
. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.openpgp.PGPOnePassSignature
Return thePGPOnePassSignature
object.org.bouncycastle.openpgp.PGPSignature
Return the signature.Return an identifier for the signing key.org.bouncycastle.openpgp.PGPPublicKeyRing
Return the key ring used to verify the signature.void
setSignature
(org.bouncycastle.openpgp.PGPSignature signature)
-
Constructor Details
-
OnePassSignatureCheck
public OnePassSignatureCheck(org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature, org.bouncycastle.openpgp.PGPPublicKeyRing verificationKeys) Create a newOnePassSignatureCheck
.- Parameters:
onePassSignature
- one-pass signature packet used to initialize the signature verifier.verificationKeys
- verification keys
-
-
Method Details
-
setSignature
public void setSignature(org.bouncycastle.openpgp.PGPSignature signature) -
getOnePassSignature
public org.bouncycastle.openpgp.PGPOnePassSignature getOnePassSignature()Return thePGPOnePassSignature
object.- Returns:
- onePassSignature
-
getSigningKey
Return an identifier for the signing key.- Returns:
- signing key fingerprint
-
getSignature
public org.bouncycastle.openpgp.PGPSignature getSignature()Return the signature.- Returns:
- signature
-
getVerificationKeys
public org.bouncycastle.openpgp.PGPPublicKeyRing getVerificationKeys()Return the key ring used to verify the signature.- Returns:
- verification keys
-