|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.impl.signator.binary.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
The Pdf-AS ID of this Signator. |
static String |
SIG_BAIK_ENABLED
Settings key for baik enables signatures |
| Constructor Summary | |
BinarySignator_1_0_0()
Default constructor. |
|
| Method Summary | |
protected BinarySignatorInformation |
compressIUI(IncrementalUpdateInformation iui)
|
protected void |
fillReplacesWithValues(IncrementalUpdateInformation iui)
Reads the signature values from the signed signature object and fills the corresponding value in the Replaces array. |
void |
finishSign(SignatorInformation signatorInformation,
DataSink dataSink)
|
protected SignatureData |
formSignatureData(IncrementalUpdateInformation iui)
Forms the SignatureData to be used for signing. |
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)
|
protected void |
restoreSignedPdf(IncrementalUpdateInformation iui)
|
protected IncrementalUpdateInformation |
uncompressIUI(BinarySignatorInformation bsi)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String SIG_BAIK_ENABLED
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 SignatorInformation prepareSign(PdfDataSource pdfDataSource,
String profile,
TablePos pos,
TimeStamper timeStamper)
throws SignatorException
prepareSign in interface SignatorSignatorExceptionSignator.prepareSign(PdfDataSource, String, TablePos, TimeStamper)
public void finishSign(SignatorInformation signatorInformation,
DataSink dataSink)
throws SignatorException
finishSign in interface SignatorSignatorExceptionSignator.finishSign(at.gv.egiz.pdfas.framework.signator.SignatorInformation,
at.gv.egiz.pdfas.framework.output.DataSink)protected void fillReplacesWithValues(IncrementalUpdateInformation iui)
iui - The IncrementalUpdateInformation.protected SignatureData formSignatureData(IncrementalUpdateInformation iui)
iui - The IncrementalUpdateInformation.
protected BinarySignatorInformation compressIUI(IncrementalUpdateInformation iui)
protected IncrementalUpdateInformation uncompressIUI(BinarySignatorInformation bsi)
protected void restoreSignedPdf(IncrementalUpdateInformation iui)
public String getEncoding()
Signator
getEncoding in interface Signator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||