public interface VerifyResult extends SignatureInformation
Modifier and Type | Method and Description |
---|---|
SignatureCheck |
getCertificateCheck()
Returns the result of the certificate check.
|
java.lang.String |
getHashInputData()
Returns the hash input data as returned by MOA as Base64-encoded String.
|
SignatureCheck |
getManifestCheckCode()
Returns the result of the manifest check.
|
java.util.List |
getNonTextualObjects()
Returns a list<
NonTextObjectInfo > of non textual objects in the pdf document. |
java.lang.String |
getPublicAuthorityCode()
Returns the public authority code or
null . |
java.util.List |
getPublicProperties()
Returns a list of Strings each stating one public property of the
certificate.
|
XMLDsigData |
getReconstructedXMLDsig()
Get the reconstructed xmldsig XML data.
|
SignatureCheck |
getValueCheckCode()
Returns the result of the value (and hash) check.
|
PdfAsException |
getVerificationException()
Returns a verification exception if any.
|
java.util.Date |
getVerificationTime()
Returns the verification time, which is the time when the signature was
verified.
|
boolean |
hasNonTextualObjects()
Returns
true if non textual objects have been found, false if not. |
boolean |
isPublicAuthority()
Returns
true if public authority is indicated. |
boolean |
isQualifiedCertificate()
Returns true, if the signer's certificate is a qualified certificate.
|
boolean |
isVerificationDone()
Returns if the verification was possible or could not even be startet.
|
getInternalSignatureInformation, getSignatureType, getSignedData, getSignerCertificate, getSigningTime, getTimeStampValue, setNonTextualObjects
boolean isVerificationDone()
getVerificationException()
for details.PdfAsException getVerificationException()
isVerificationDone()
.SignatureCheck getCertificateCheck()
SignatureCheck getValueCheckCode()
SignatureCheck getManifestCheckCode()
boolean isQualifiedCertificate()
boolean isPublicAuthority()
true
if public authority is indicated.true
if public authority.java.lang.String getPublicAuthorityCode()
null
.null
.java.util.List getPublicProperties()
Such public properties are certificate extensions each being assigned an own OID. For example the public property "Verwaltungseigenschaft" has the OID "1.2.40.0.10.1.1.1".
java.util.Date getVerificationTime()
Note that this is actually the Date passed to the verify methods over
VerifyParameters.setVerificationTime(Date)
or
VerifyAfterAnalysisParameters.setVerificationTime(Date)
. The
signature devices don't respond the actual verification time so there is no
guarantee that the set verification time was actually used as time of
verification. Please consult the device's documentation for more
information.
If the verification device does not return a verification time and no
verification time was set in the
VerifyParameters.setVerificationTime(Date)
or
VerifyAfterAnalysisParameters.setVerificationTime(Date)
, the time
returned by this method will be equal to the signing time (
SignatureInformation.getSigningTime()
).
java.lang.String getHashInputData()
This will only return a value other than null if the corresponding
VerifyParameters
has been set to true.
Note that the HashInputData does not necessarily have to be exactly the
same as the signed data return by the
SignatureInformation.getSignedData()
method.
SignatureInformation.getSignedData()
java.util.List getNonTextualObjects()
NonTextObjectInfo
> of non textual objects in the pdf document.
Only available for textual signatures. Show this to the user who signed the textual content only!getNonTextualObjects
in interface SignatureInformation
NonTextObjectInfo
or null of not available (binary signature)boolean hasNonTextualObjects()
true
if non textual objects have been found, false
if not.hasNonTextualObjects
in interface SignatureInformation
true
if non textual objects have been found, false
if not.XMLDsigData getReconstructedXMLDsig()