org.apache.commons.openpgp
Interface OpenPgpSignatureVerifier
- All Known Implementing Classes:
- BouncyCastleOpenPgpSignatureVerifier
public interface OpenPgpSignatureVerifier
Interface for verifying data signed with OpenPGP.
- Author:
- Brett Porter
ROLE
static final String ROLE
verifySignature
SignatureStatus verifySignature(InputStream data,
KeyRing keyRing)
throws OpenPgpException,
UnknownKeyException
- Verify a piece of data that was signed with OpenPGP.
- Parameters:
data
- the data that was signedkeyRing
- the keyring containing the key used to sign the data
- Throws:
OpenPgpException
UnknownKeyException
verifyDetachedSignature
SignatureStatus verifyDetachedSignature(InputStream data,
InputStream signature,
KeyRing keyRing)
throws OpenPgpException,
UnknownKeyException,
IOException
- Verify a piece of data against a detached signature.
- Parameters:
data
- the data to that was signedsignature
- the detached signature to verify against the datakeyRing
- the keyring containing the key used to sign the data
- Throws:
OpenPgpException
UnknownKeyException
IOException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.