public class ReconstructXMLDsigParameters
extends java.lang.Object
PdfAs.reconstructXMLDSIG(ReconstructXMLDsigParameters)
method.
No need to call analyze before calling this method.Modifier and Type | Field and Description |
---|---|
protected DataSource |
document
The document to be verified.
|
protected boolean |
returnHashInputData
Tells the signature device (e.g.
|
protected boolean |
returnNonTextualObjects |
protected java.lang.String |
signatureDevice
The signature device to perform the actual signature.
|
protected int |
signatureToVerify
The (zero based) index of the signature to verify.
|
protected java.util.Date |
verificationTime
Allows to pass a VerificationTime to the verification device.
|
protected java.lang.String |
verifyMode
The mode of operation how the document is analyzed.
|
Constructor and Description |
---|
ReconstructXMLDsigParameters() |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDocument() |
java.lang.String |
getSignatureDevice() |
int |
getSignatureToVerify() |
java.util.Date |
getVerificationTime() |
java.lang.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(java.lang.String signatureDevice) |
void |
setSignatureToVerify(int signatureToVerify) |
void |
setVerificationTime(java.util.Date verificationTime) |
void |
setVerifyMode(java.lang.String verifyMode) |
protected DataSource document
protected java.lang.String signatureDevice
May be Constants.SIGNATURE_DEVICE_MOA
or
Constants.SIGNATURE_DEVICE_BKU
.
protected java.lang.String verifyMode
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).
protected int signatureToVerify
This allows to verify only one found signature instead of all. Constants.VERIFY_ALL
means to
verify all found signatures.
protected java.util.Date verificationTime
Note that the actual usage of this parameter depends on the verification device.
protected boolean returnHashInputData
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.
protected boolean returnNonTextualObjects
public DataSource getDocument()
public void setDocument(DataSource document)
document
- the document to setpublic java.lang.String getSignatureDevice()
public void setSignatureDevice(java.lang.String signatureDevice)
signatureDevice
- the signatureDevice to setpublic java.lang.String getVerifyMode()
public void setVerifyMode(java.lang.String verifyMode)
verifyMode
- the verifyMode to setpublic int getSignatureToVerify()
public void setSignatureToVerify(int signatureToVerify)
signatureToVerify
- the signatureToVerify to setpublic java.util.Date getVerificationTime()
public void setVerificationTime(java.util.Date verificationTime)
verificationTime
- the verificationTime to setpublic boolean isReturnHashInputData()
public void setReturnHashInputData(boolean returnHashInputData)
returnHashInputData
- the returnHashInputData to setpublic boolean isReturnNonTextualObjects()
public void setReturnNonTextualObjects(boolean returnNonTextualObjects)
returnNonTextualObjects
-