software.scanner
Class ScannedBallotWithPdfOverlaysAndXmlSignatures

java.lang.Object
  extended by software.scanner.ScannedBallotWithPdfOverlaysAndXmlSignatures

public class ScannedBallotWithPdfOverlaysAndXmlSignatures
extends java.lang.Object

Given a scanned ballot, it can generate an xml signature, and a pdf overlay for the scanned ballot

Author:
stefan

Constructor Summary
ScannedBallotWithPdfOverlaysAndXmlSignatures(ScannedBallotInterface sb, java.security.KeyPair pair)
           
 
Method Summary
 byte[] getSignedXml()
           
 void makePdfOverlay(java.lang.String file)
          creates a pdf file contaning marks for all valid and invalid marks, a bar code with the digital signature of the serial number + the marks and in a corner it has the chosen page, the serial number and the marked possitions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannedBallotWithPdfOverlaysAndXmlSignatures

public ScannedBallotWithPdfOverlaysAndXmlSignatures(ScannedBallotInterface sb,
                                                    java.security.KeyPair pair)
                                             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getSignedXml

public byte[] getSignedXml()
Returns:
an xml signed document representing a scanned ballot in prow format

makePdfOverlay

public void makePdfOverlay(java.lang.String file)
creates a pdf file contaning marks for all valid and invalid marks, a bar code with the digital signature of the serial number + the marks and in a corner it has the chosen page, the serial number and the marked possitions

Parameters:
file - - the file where the overlay is outputed