|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.framework.signators.BinarySignator_1_0_0
Signs the document binary.
In prepareSign, an Incremental Update is created that contains the Signature block and the egiz dictionary. For formatting the layout, variable values are filled with placeholders. After the layout has been fixed, all variable fields (all holes in the byte ranges) are replaced with 0. This document is then base64 encoded and signed.
In finishSign, the variable fields (values, /Cert) are replaced with the values according to the encoding.
| Field Summary | |
static PdfASID |
MY_ID
Deprecated. The Pdf-AS ID of this Signator. |
| Constructor Summary | |
BinarySignator_1_0_0()
Deprecated. Default constructor. |
|
| Method Summary | |
protected void |
fillReplacesWithValues(IncrementalUpdateInformation iui)
Deprecated. Reads the signature values from the signed signature object and fills the corresponding value in the Replaces array. |
SignResult |
finishSign(IncrementalUpdateInformation iui)
Deprecated. This is called after the data has been signed by the connector. |
protected SignatureData |
formSignatureData(IncrementalUpdateInformation iui)
Deprecated. Forms the SignatureData to be used for signing. |
PdfASID |
getMyId()
Deprecated. Returns the PdfASID of this Connector. |
IncrementalUpdateInformation |
prepareSign(PdfDataSource pdf,
String signature_type,
TablePos pos,
boolean has_SIG_ID)
Deprecated. This is called before the data is sent to the connector. |
protected void |
reduceToIUBlock(IncrementalUpdateInformation iui)
Deprecated. |
protected void |
restoreSignedPdf(IncrementalUpdateInformation iui)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final PdfASID MY_ID
| Constructor Detail |
public BinarySignator_1_0_0()
| Method Detail |
public PdfASID getMyId()
SignatorThis 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.
getMyId in interface SignatorSignator.getMyId()
public IncrementalUpdateInformation prepareSign(PdfDataSource pdf,
String signature_type,
TablePos pos,
boolean has_SIG_ID)
throws PresentableException
Signator
prepareSign in interface Signatorsignature_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.
PresentableException - Forwarded exception.at.knowcenter.wag.egov.egiz.framework.Signator#prepareSign(byte[],
String, TablePos, boolean)
public SignResult finishSign(IncrementalUpdateInformation iui)
throws PresentableException
SignatorReplaces all the left out placeholders with their values retrieved from the signation process.
finishSign in interface Signatoriui - The IncrementalUpdateInformation.
PresentableExceptionSignator.finishSign(at.knowcenter.wag.egov.egiz.pdf.IncrementalUpdateInformation)protected void fillReplacesWithValues(IncrementalUpdateInformation iui)
iui - The IncrementalUpdateInformation.protected void reduceToIUBlock(IncrementalUpdateInformation iui)
protected void restoreSignedPdf(IncrementalUpdateInformation iui)
protected SignatureData formSignatureData(IncrementalUpdateInformation iui)
iui - The IncrementalUpdateInformation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||