public class BouncyCastleOpenPgpSignatureVerifier extends java.lang.Object implements OpenPgpSignatureVerifier
ROLE| Constructor and Description |
|---|
BouncyCastleOpenPgpSignatureVerifier() |
| Modifier and Type | Method and Description |
|---|---|
SignatureStatus |
verifyDetachedSignature(java.io.InputStream data,
java.io.InputStream signature,
KeyRing keyRing,
boolean asciiArmored)
Verify a piece of data against a detached signature.
|
SignatureStatus |
verifySignature(java.io.InputStream data,
KeyRing keyRing)
Verify a piece of data that was signed with OpenPGP.
|
public BouncyCastleOpenPgpSignatureVerifier()
public SignatureStatus verifySignature(java.io.InputStream data, KeyRing keyRing) throws OpenPgpException, UnknownKeyException
OpenPgpSignatureVerifierverifySignature in interface OpenPgpSignatureVerifierdata - the data that was signedkeyRing - the keyring containing the key used to sign the dataOpenPgpExceptionUnknownKeyExceptionpublic SignatureStatus verifyDetachedSignature(java.io.InputStream data, java.io.InputStream signature, KeyRing keyRing, boolean asciiArmored) throws OpenPgpException, UnknownKeyException, java.io.IOException
OpenPgpSignatureVerifierverifyDetachedSignature in interface OpenPgpSignatureVerifierdata - the data to that was signedsignature - the detached signature to verify against the datakeyRing - the keyring containing the key used to sign the dataasciiArmored - whether the signature is ascii armoredOpenPgpExceptionUnknownKeyExceptionjava.io.IOException