uk.me.nxg.enormity.gpg
Class GPGSigner
java.lang.Object
uk.me.nxg.enormity.gpg.GPGConnection
uk.me.nxg.enormity.gpg.GPGSigner
public class GPGSigner
- extends GPGConnection
Handles the signing of files
Constructor Summary |
GPGSigner()
|
GPGSigner(File home)
Creates a new signer, indicating where GPG should find the needed keys |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPGSigner
public GPGSigner()
GPGSigner
public GPGSigner(File home)
- Creates a new signer, indicating where GPG should find the needed keys
sign
public GPGInformation sign(File inputFile,
String identity,
String passphrase)
- Signs the input file.
Returns an object containing information about the interaction
with GPG.
- Parameters:
inputFile
- the file whose contents are to be signed (an ESIS file)identity
- the identity (as a hex string or other indicator) of the key to sign withpassphrase
- the passphrase for the given key
- Returns:
- information about the response from GPG
startSigning
public GPGConnection.Result<GPGInformation> startSigning(File inputFile,
String identity,
String passphrase)
Copyright © 2012. All Rights Reserved.