/** * Copyright (c) 2006 by Know-Center, Graz, Austria * * This software is the confidential and proprietary information of Know-Center, * Graz, Austria. You shall not disclose such Confidential Information and shall * use it only in accordance with the terms of the license agreement you entered * into with Know-Center. * * KNOW-CENTER MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR * NON-INFRINGEMENT. KNOW-CENTER SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. * * $Id: Verificator.java,v 1.1 2006/08/25 17:07:21 wprinz Exp $ */ package at.knowcenter.wag.egov.egiz.framework; import java.util.List; import at.knowcenter.wag.egov.egiz.exceptions.PresentableException; import at.knowcenter.wag.exactparser.parsing.results.FooterParseResult; /** * Given an Incremental Update Block and the corresponding PDF, a verificator * extracts all Signatures of its type and returns them as valitatable * SignatureHolders. * * @author wprinz */ public interface Verificator { /** * Parses the given document/Block for signatures of this type. * * @param pdf * The whole pdf document. A Verificator must only access the * document up to its given block (block.next_index) and must not * modify any byte in the pdf array. * @param block * The incremental update block. * @param start_of_whole_block * The start of the incremental update block (the end of the previous * block) - If 0, this is the first block (the original Document). * @return Returns the List of SignatureHolder objects found for this block. */ public List parseBlock(final byte[] pdf, final FooterParseResult block, int start_of_whole_block) throws PresentableException; }