org.apache.commons.openpgp
Interface OpenPgpSignatureVerifier

All Known Implementing Classes:
BouncyCastleOpenPgpSignatureVerifier

public interface OpenPgpSignatureVerifier

Interface for verifying data signed with OpenPGP.

Author:
Brett Porter

Field Summary
static String ROLE
           
 
Method Summary
 SignatureStatus verifyDetachedSignature(InputStream data, InputStream signature, KeyRing keyRing)
          Verify a piece of data against a detached signature.
 SignatureStatus verifySignature(InputStream data, KeyRing keyRing)
          Verify a piece of data that was signed with OpenPGP.
 

Field Detail

ROLE

static final String ROLE
Method Detail

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 signed
keyRing - 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 signed
signature - the detached signature to verify against the data
keyRing - the keyring containing the key used to sign the data
Throws:
OpenPgpException
UnknownKeyException
IOException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.