at.knowcenter.wag.egov.egiz.framework.signators
Class TextualSignator_1_0_0

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.framework.signators.TextualSignator_1_0_0
All Implemented Interfaces:
Signator
Direct Known Subclasses:
TextualSignator_1_1_0

Deprecated. moved to new-framework

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
          Deprecated. The Pdf-AS ID of this Signator.
 
Constructor Summary
TextualSignator_1_0_0()
          Deprecated. Default constructor.
 
Method Summary
 SignResult finishSign(IncrementalUpdateInformation iui)
          Deprecated. This is called after the data has been signed by the connector.
 PdfASID getMyId()
          Deprecated. Returns the PdfASID of this Connector.
 IncrementalUpdateInformation prepareSign(PdfDataSource pdf, String signature_type, TablePos pos, boolean has_SIG_ID)
          Deprecated.  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
Deprecated. 
The Pdf-AS ID of this Signator.

Constructor Detail

TextualSignator_1_0_0

public TextualSignator_1_0_0()
Deprecated. 
Default constructor.

Method Detail

getMyId

public PdfASID getMyId()
Deprecated. 
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 IncrementalUpdateInformation prepareSign(PdfDataSource pdf,
                                                String signature_type,
                                                TablePos pos,
                                                boolean has_SIG_ID)
                                         throws PresentableException
Deprecated. 

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
Parameters:
signature_type - The type/profile of the signature to apply.
pos - The table position. If null, the position is read from the profile, if this is null too, the position is computed.
has_SIG_ID - Tells the algorithm, id a SIG_ID field will be required after signing. Algorithms with fixed formatted signature blocks need to know this.
Returns:
Returns the IncrementalUpdateInformation.
Throws:
PresentableException - Forwarded exception.
See Also:
at.knowcenter.wag.egov.egiz.framework.Signator#prepareSign(byte[], String, TablePos, boolean)

finishSign

public SignResult finishSign(IncrementalUpdateInformation iui)
                      throws PresentableException
Deprecated. 
Description copied from interface: Signator
This is called after the data has been signed by the connector.

Replaces all the left out placeholders with their values retrieved from the signation process.

Specified by:
finishSign in interface Signator
Parameters:
iui - The IncrementalUpdateInformation.
Throws:
PresentableException
See Also:
Signator.finishSign(at.knowcenter.wag.egov.egiz.pdf.IncrementalUpdateInformation)


Copyright © 2006-2010. All Rights Reserved.