uk.me.nxg.enormity.gpg
Class GPGSigner

java.lang.Object
  extended by uk.me.nxg.enormity.gpg.GPGConnection
      extended by uk.me.nxg.enormity.gpg.GPGSigner

public class GPGSigner
extends GPGConnection

Handles the signing of files


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.me.nxg.enormity.gpg.GPGConnection
GPGConnection.Result<T>
 
Constructor Summary
GPGSigner()
           
GPGSigner(File home)
          Creates a new signer, indicating where GPG should find the needed keys
 
Method Summary
 GPGInformation sign(File inputFile, String identity, String passphrase)
          Signs the input file.
 GPGConnection.Result<GPGInformation> startSigning(File inputFile, String identity, String passphrase)
           
 
Methods inherited from class uk.me.nxg.enormity.gpg.GPGConnection
completedOK, getStderr, run, run, setStderr, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPGSigner

public GPGSigner()

GPGSigner

public GPGSigner(File home)
Creates a new signer, indicating where GPG should find the needed keys

Method Detail

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 with
passphrase - 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.