at.gv.egiz.pdfas.impl.signator.textual
Class TextualSignator_1_0_0

java.lang.Object
  extended byat.gv.egiz.pdfas.impl.signator.textual.TextualSignator_1_0_0
All Implemented Interfaces:
Signator
Direct Known Subclasses:
DetachedTextualSignator_1_0_0, TextualSignator_1_1_0

public class TextualSignator_1_0_0
extends Object
implements Signator

Signs a document textually.

In prepareSign, the document text is extracted and normalized.

In finishSign, the signed SignatureObject is transformed into a Signature block, which is then written as an Incremental Update.

Author:
wprinz

Field Summary
static PdfASID MY_ID
          The Pdf-AS ID of this Signator.
 
Constructor Summary
TextualSignator_1_0_0()
          Default constructor.
 
Method Summary
 void finishSign(SignatorInformation signatorInformation, DataSink dataSink)
           
 String getEncoding()
          Suppies encoding for text extraction
 PdfASID getMyId()
          Returns the PdfASID of this Connector.
 SignatorInformation prepareSign(PdfDataSource pdfDataSource, String profile, TablePos pos, TimeStamper timestamper)
           The parameter has_SIG_ID is not used by this Signator because it doesn't pre-format the signature block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MY_ID

public static final PdfASID MY_ID
The Pdf-AS ID of this Signator.

Constructor Detail

TextualSignator_1_0_0

public TextualSignator_1_0_0()
Default constructor.

Method Detail

getMyId

public PdfASID getMyId()
Description copied from interface: Signator
Returns the PdfASID of this Connector.

This should always return the MY_ID static field of the connector. Dont't forget to override this.

Within connector code always use this method so that code reuse through derivation can take place correctly.

Specified by:
getMyId in interface Signator
Returns:
Returns the PdfASID of this Connector.
See Also:
Signator.getMyId()

prepareSign

public SignatorInformation prepareSign(PdfDataSource pdfDataSource,
                                       String profile,
                                       TablePos pos,
                                       TimeStamper timestamper)
                                throws SignatorException

The parameter has_SIG_ID is not used by this Signator because it doesn't pre-format the signature block.

Specified by:
prepareSign in interface Signator
Throws:
SignatorException
See Also:
at.gv.egiz.pdfas.framework.signator.Signator#prepareSign(at.gv.egiz.pdfas.framework.input.PdfDataSource, java.lang.String, at.knowcenter.wag.egov.egiz.pdf.TablePos, boolean)

finishSign

public void finishSign(SignatorInformation signatorInformation,
                       DataSink dataSink)
                throws SignatorException
Specified by:
finishSign in interface Signator
Throws:
SignatorException
See Also:
Signator.finishSign(at.gv.egiz.pdfas.framework.signator.SignatorInformation, at.gv.egiz.pdfas.framework.output.DataSink)

getEncoding

public String getEncoding()
Description copied from interface: Signator
Suppies encoding for text extraction

Specified by:
getEncoding in interface Signator
Returns:


Copyright © 2006-2010. All Rights Reserved.