at.knowcenter.wag.egov.egiz.framework
Class VerificationFilter

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.framework.VerificationFilter

Deprecated. use the new at.gv.egiz.framework instead

public class VerificationFilter
extends Object

This filter transforms an arbitrary input pdf into an ordered List of SignatureHolders for verification.

The pdf document is parsed and the signature blocks (textual, binary, etc.) are extracted as verifyable SignatureHolder objects in the order they appear in the document.

Author:
wprinz, amavriqi

Field Summary
static String ALLOW_POST_SIGN_MODIFICATIONS
          Deprecated.  
static byte[] EGIZ_DICT_NAME
          Deprecated.  
static byte[] EGIZ_KZ_NAME
          Deprecated.  
 
Constructor Summary
VerificationFilter()
          Deprecated. Default constructor.
 
Method Summary
protected  void checkKZ(PdfASID kz)
          Deprecated. Checks, if the given KZ is recognized by this application or logs a warning if it isn't.
protected  boolean containsEGIZDict(byte[] pdf, FooterParseResult block)
          Deprecated. Tells, if the given incremental update block contains a binary signature.
protected  PdfASID extractKZFromEGIZBlock(byte[] pdf, FooterParseResult block)
          Deprecated. Extracts the PDF AS ID of the egiz block.
 List extractSignaturesFromPdf(byte[] pdf)
          Deprecated. Extracts the List of SignatureHolders from the given PDF document.
 List extractSignaturesFromPdf(byte[] pdf, boolean ignorePostSignModificationsRestriction)
          Deprecated.  
 List extractSignaturesFromPlainText(String raw_text)
          Deprecated. Extracts the List of SignatureHolders from the given plain text document.
protected static void printFoundHolders(String list_caption, List found_holders, PrintStream writer)
          Deprecated.  
static String restoreKZ(byte[] pdf, ArrayParseResult kz_apr)
          Deprecated. Restores the Kennzeichnung String from an Array.
protected  void unrollLinearization(List blocks)
          Deprecated. Removes the linearization footer from the list of update blocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EGIZ_DICT_NAME

public static final byte[] EGIZ_DICT_NAME
Deprecated. 

EGIZ_KZ_NAME

public static final byte[] EGIZ_KZ_NAME
Deprecated. 

ALLOW_POST_SIGN_MODIFICATIONS

public static final String ALLOW_POST_SIGN_MODIFICATIONS
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

VerificationFilter

public VerificationFilter()
Deprecated. 
Default constructor.

Method Detail

extractSignaturesFromPdf

public List extractSignaturesFromPdf(byte[] pdf)
                              throws PresentableException
Deprecated. 
Extracts the List of SignatureHolders from the given PDF document.

Parameters:
pdf - The PDF document.
Returns:
Returns the ordered List of SignatureHolder objects (the first signature will be at index 0) extracted from the document or an empty list, if none could be found.
Throws:
PresentableException

extractSignaturesFromPdf

public List extractSignaturesFromPdf(byte[] pdf,
                                     boolean ignorePostSignModificationsRestriction)
                              throws PresentableException
Deprecated. 
Throws:
PresentableException

checkKZ

protected void checkKZ(PdfASID kz)
Deprecated. 
Checks, if the given KZ is recognized by this application or logs a warning if it isn't.

Parameters:
kz - The Kennzeichnung.

unrollLinearization

protected void unrollLinearization(List blocks)
Deprecated. 
Removes the linearization footer from the list of update blocks.

Parameters:
blocks - The list of FooterParseResult objects in \prev order.

extractSignaturesFromPlainText

public List extractSignaturesFromPlainText(String raw_text)
                                    throws PDFDocumentException,
                                           SignatureException,
                                           SignatureTypesException,
                                           NormalizeException
Deprecated. 
Extracts the List of SignatureHolders from the given plain text document.

Note that this can only extract text signatures.

Parameters:
raw_text - The plain text document.
Returns:
Returns the ordered List of SignatureHolder objects (the first signature will be at index 0) extracted from the document or an empty list, if none could be found.
Throws:
SignatureException
PDFDocumentException
SignatureTypesException
NormalizeException

containsEGIZDict

protected boolean containsEGIZDict(byte[] pdf,
                                   FooterParseResult block)
Deprecated. 
Tells, if the given incremental update block contains a binary signature.

According to definition, if a block is a binary block, it must/cannot contain other signatures than this one.

Parameters:
block - The incremental update block.
Returns:
Returns true, if this block is a binary signature block, false otherwise.

extractKZFromEGIZBlock

protected PdfASID extractKZFromEGIZBlock(byte[] pdf,
                                         FooterParseResult block)
                                  throws PDFDocumentException,
                                         InvalidIDException
Deprecated. 
Extracts the PDF AS ID of the egiz block.

Parameters:
pdf - The pdf.
block - The IU block.
Returns:
Returns the extracted PDF AS ID.
Throws:
PDFDocumentException - Forwarded exception.
InvalidIDException - Forwarded exception.

restoreKZ

public static String restoreKZ(byte[] pdf,
                               ArrayParseResult kz_apr)
                        throws PDFDocumentException
Deprecated. 
Restores the Kennzeichnung String from an Array.

Parameters:
pdf - The PDF.
kz_apr - The Array, as parsed from the EGIZ Dict.
Returns:
Returns the restored KZ.
Throws:
PDFDocumentException - Forwarded exception.

printFoundHolders

protected static void printFoundHolders(String list_caption,
                                        List found_holders,
                                        PrintStream writer)
Deprecated. 


Copyright © 2006-2010. All Rights Reserved.