uk.me.nxg.enormity.gpg
Class GPGVerifier
java.lang.Object
uk.me.nxg.enormity.gpg.GPGConnection
uk.me.nxg.enormity.gpg.GPGVerifier
public class GPGVerifier
- extends GPGConnection
Verifies signatures
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPGVerifier
public GPGVerifier()
GPGVerifier
public GPGVerifier(File home)
- Creates a new verifier, indicating where GPG should find the needed keys
verifyDetails
public GPGInformation verifyDetails(File documentFile,
String signature)
throws SAXException
- Verifies a document against a detached signature.
The contents of the stderr stream will be available in
GPGConnection.getStderr()
.
- Returns:
- a record of the response from GPG
- Throws:
SAXException
verifyDetails
public GPGInformation verifyDetails(File documentFile,
File signatureFile)
- Verifies a document against a detached signature.
The contents of the stderr stream will be available in
GPGConnection.getStderr()
.
- Returns:
- a record of the response from GPG
verify
public boolean verify(File documentFile,
File signatureFile)
- Verifies a document against a detached signature
- Returns:
- true if the signature is value (GOODSIG)
Copyright © 2012. All Rights Reserved.