org.apache.commons.openpgp
Interface OpenPgpSignatureVerifier
- BouncyCastleOpenPgpSignatureVerifier
public interface OpenPgpSignatureVerifier
Interface for verifying data signed with OpenPGP.
ROLE
public static final String ROLE
verifyDetachedSignature
public SignatureStatus verifyDetachedSignature(InputStream data,
InputStream signature,
KeyRing keyRing,
boolean asciiArmored)
throws OpenPgpException,
UnknownKeyException,
IOException
Verify a piece of data against a detached signature.
data
- 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 armored