Class OnePassSignatureCheck
- java.lang.Object
-
- org.pgpainless.signature.consumer.OnePassSignatureCheck
-
public class OnePassSignatureCheck extends Object
Tuple-class that bundles together aPGPOnePassSignatureobject, aPGPPublicKeyRingdestined to verify the signature, thePGPSignatureitself and a record of whether the signature was verified.
-
-
Constructor Summary
Constructors Constructor Description OnePassSignatureCheck(org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature, org.bouncycastle.openpgp.PGPPublicKeyRing verificationKeys)Create a newOnePassSignatureCheck.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.openpgp.PGPOnePassSignaturegetOnePassSignature()Return thePGPOnePassSignatureobject.org.bouncycastle.openpgp.PGPSignaturegetSignature()Return the signature.SubkeyIdentifiergetSigningKey()Return an identifier for the signing key.org.bouncycastle.openpgp.PGPPublicKeyRinggetVerificationKeys()Return the key ring used to verify the signature.voidsetSignature(org.bouncycastle.openpgp.PGPSignature signature)
-
-
-
Constructor Detail
-
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 Detail
-
setSignature
public void setSignature(org.bouncycastle.openpgp.PGPSignature signature)
-
getOnePassSignature
public org.bouncycastle.openpgp.PGPOnePassSignature getOnePassSignature()
Return thePGPOnePassSignatureobject.- Returns:
- onePassSignature
-
getSigningKey
public SubkeyIdentifier 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
-
-