/**
*
* This class is basically used to transport information about the document from * the prepareSign to the finishSign of the Signator. In future, this could be * extended and encapsulated to task proprietary IUI instances. E.g. a * BinarySignatorIUI, a TextualSignatorIUI, both implementing the core IUI * interface, but encapsulating Binary or Textual specialities. *
* * @author wprinz */ public class IncrementalUpdateInformation implements Serializable { /** * SVUID. */ private static final long serialVersionUID = -5904526956127108035L; /** * The original PDF document. */ //public byte[] original_document = null; public PdfDataSource original_document = null; /** * The Singature type to be created. */ public String signature_type = null; /** * The signed pdf document. * ** This is the original document plus the incremental update block. *
*/ public byte[] signed_pdf = null; // this is only valid during prepare // holds the variable iui data for bin sigs. public byte [] sign_iui_block = null; /** * The start index of this incremental update block. */ int start_index = -1; /** * The indirect reference of the egiz dict. */ // PdfIndirectReference egiz_dict_ir = null; public int egiz_dict_ir_number; public int egiz_dict_ir_generation; /** * The List of ReplaceInfo objects specifying the byte ranges where the * variable data has to be fille in. */ public List replaces = null; /** * The List of StringInfo objects specifying the byte ranges that should * be/were signed. */ public List byte_ranges = null; /** * The indirect reference of the signature x-object. */ // public PdfIndirectReference temp_ir; public int temp_ir_number; public int temp_ir_generation; /** * The start index of the content stream of the signature x-object. */ public int content_stream_start = -1; /** * The length of the content stream of the signature x-object. */ public int content_stream_length = -1; // /** // * The document text for signing. // */ // public String document_text; /** * The data to be signed or verified. * ** For text signature this is the document text. * For binary signature this is the PDF document. *
*/ public SignatureData signature_data = null; /** * The SignatureObject containing the variable values after the document text * has been signed. ** These values have to be filled in. *
*/ public SignSignatureObject signed_signature_object; /** * The start of the /encodings array. */ public int enc_start = -1; /** * The length of the /encodings array. */ public int enc_length = -1; /** * The start of the first /Cert */ public int cert_start = -1; /** * The length of the /cert placeholder. */ public int cert_length = -1; /** * The list of strings of the KZ. */ public List kz_list; /** * The table position. */ public TablePos pos; /** * For signing: the profile. */ public String signProfile; /** * The actual position where the table was written. */ public ActualTablePos actualTablePos; }