at.gv.egiz.pdfas.api.verify
Class VerifyParameters

java.lang.Object
  extended byat.gv.egiz.pdfas.api.verify.VerifyParameters

public class VerifyParameters
extends Object

Parameter object that holds the verify parameters.

Author:
wprinz

Field Summary
protected  DataSource document
          The document to be verified.
protected  boolean returnHashInputData
          Tells the signature device (e.g.
protected  boolean returnNonTextualObjects
           
protected  String signatureDevice
          The signature device to perform the actual signature.
protected  int signatureToVerify
          The (zero based) index of the signature to verify.
protected  Date verificationTime
          Allows to pass a VerificationTime to the verification device.
protected  String verifyMode
          The mode of operation how the document is analyzed.
 
Constructor Summary
VerifyParameters()
           
 
Method Summary
 DataSource getDocument()
           
 String getSignatureDevice()
           
 int getSignatureToVerify()
           
 Date getVerificationTime()
           
 String getVerifyMode()
           
 boolean isReturnHashInputData()
           
 boolean isReturnNonTextualObjects()
           
 void setDocument(DataSource document)
           
 void setReturnHashInputData(boolean returnHashInputData)
           
 void setReturnNonTextualObjects(boolean returnNonTextualObjects)
          Tells if non text object of the signed pdf should be extracted and returned.
 void setSignatureDevice(String signatureDevice)
           
 void setSignatureToVerify(int signatureToVerify)
           
 void setVerificationTime(Date verificationTime)
           
 void setVerifyMode(String verifyMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected DataSource document
The document to be verified.


signatureDevice

protected String signatureDevice
The signature device to perform the actual signature.

May be Constants.SIGNATURE_DEVICE_MOA or Constants.SIGNATURE_DEVICE_BKU.


verifyMode

protected String verifyMode
The mode of operation how the document is analyzed.

May be Constants.VERIFY_MODE_BINARY_ONLY to check the document for binary signatures only (very fast). Or may be Constants.VERIFY_MODE_SEMI_CONSERVATIVE to perform a semi conservative (optimized) text and binary verification (slow). Or may be Constants.VERIFY_MODE_FULL_CONSERVATIVE to perform a full conservative text and binary verification (very slow).


signatureToVerify

protected int signatureToVerify
The (zero based) index of the signature to verify.

This allows to verify only one found signature instead of all. Constants.VERIFY_ALL means to verify all found signatures.


verificationTime

protected Date verificationTime
Allows to pass a VerificationTime to the verification device.

Note that the actual usage of this parameter depends on the verification device.


returnHashInputData

protected boolean returnHashInputData
Tells the signature device (e.g. MOA) to return the signature hash input data (which is the probably transformed signed data).

Note that this forces MOA to return the potentially large signature data to be returned in the result XML, which may result in very bad performance.


returnNonTextualObjects

protected boolean returnNonTextualObjects
Constructor Detail

VerifyParameters

public VerifyParameters()
Method Detail

getDocument

public DataSource getDocument()
Returns:
the document

setDocument

public void setDocument(DataSource document)
Parameters:
document - the document to set

getSignatureDevice

public String getSignatureDevice()
Returns:
the signatureDevice

setSignatureDevice

public void setSignatureDevice(String signatureDevice)
Parameters:
signatureDevice - the signatureDevice to set

getVerifyMode

public String getVerifyMode()
Returns:
the verifyMode

setVerifyMode

public void setVerifyMode(String verifyMode)
Parameters:
verifyMode - the verifyMode to set

getSignatureToVerify

public int getSignatureToVerify()
Returns:
the signatureToVerify

setSignatureToVerify

public void setSignatureToVerify(int signatureToVerify)
Parameters:
signatureToVerify - the signatureToVerify to set

getVerificationTime

public Date getVerificationTime()
Returns:
the verificationTime

setVerificationTime

public void setVerificationTime(Date verificationTime)
Parameters:
verificationTime - the verificationTime to set

isReturnHashInputData

public boolean isReturnHashInputData()
Returns:
the returnHashInputData

setReturnHashInputData

public void setReturnHashInputData(boolean returnHashInputData)
Parameters:
returnHashInputData - the returnHashInputData to set

isReturnNonTextualObjects

public boolean isReturnNonTextualObjects()

setReturnNonTextualObjects

public void setReturnNonTextualObjects(boolean returnNonTextualObjects)
Tells if non text object of the signed pdf should be extracted and returned. One should show this to the user, especially in case of textual signature. Defaults to false

Parameters:
returnNonTextualObjects -


Copyright © 2006-2010. All Rights Reserved.