at.gv.egiz.pdfas.api.verify
Interface VerifyResult

All Superinterfaces:
SignatureInformation
All Known Implementing Classes:
VerifyResultAdapter

public interface VerifyResult
extends SignatureInformation

Encapsulates the data of a verification of one signature.

Author:
wprinz

Method Summary
 SignatureCheck getCertificateCheck()
          Returns the result of the certificate check.
 String getHashInputData()
          Returns the hash input data as returned by MOA as Base64-encoded String.
 SignatureCheck getManifestCheckCode()
          Returns the result of the manifest check.
 List getNonTextualObjects()
          Returns a list<NonTextObjectInfo> of non textual objects in the pdf document.
 String getPublicAuthorityCode()
          Returns the public authority code or null.
 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.
 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. see getVerificationException() for details.
 
Methods inherited from interface at.gv.egiz.pdfas.api.commons.SignatureInformation
getInternalSignatureInformation, getSignatureType, getSignedData, getSignerCertificate, getSigningTime, getTimeStampValue, setNonTextualObjects
 

Method Detail

isVerificationDone

boolean isVerificationDone()
Returns if the verification was possible or could not even be startet. see getVerificationException() for details.

Returns:

getVerificationException

PdfAsException getVerificationException()
Returns a verification exception if any. Shows that the verification could not be started. See isVerificationDone().

Returns:

getCertificateCheck

SignatureCheck getCertificateCheck()
Returns the result of the certificate check.

Returns:
Returns the result of the certificate check.

getValueCheckCode

SignatureCheck getValueCheckCode()
Returns the result of the value (and hash) check.

Returns:
Returns the result of the value (and hash) check.

getManifestCheckCode

SignatureCheck getManifestCheckCode()
Returns the result of the manifest check.

Returns:
Returns the result of the manifest check.

isQualifiedCertificate

boolean isQualifiedCertificate()
Returns true, if the signer's certificate is a qualified certificate.

Returns:
Returns true, if the signer's certificate is a qualified certificate.

isPublicAuthority

boolean isPublicAuthority()
Returns true if public authority is indicated.

Returns:
true if public authority.

getPublicAuthorityCode

String getPublicAuthorityCode()
Returns the public authority code or null.

Returns:
The public authority code or null.

getPublicProperties

List getPublicProperties()
Returns a list of Strings each stating one public property of the certificate.

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".

Returns:
Returns the list of Strings representing the public properties of this certificate, if any.

getVerificationTime

Date getVerificationTime()
Returns the verification time, which is the time when the signature was verified.

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()).

Returns:
Returns the verification time, which is the time when the signature was verified.

getHashInputData

String getHashInputData()
Returns the hash input data as returned by MOA as Base64-encoded String.

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.

Returns:
Returns the base64 encoded hash input data as returned by MOA.
See Also:
SignatureInformation.getSignedData()

getNonTextualObjects

List getNonTextualObjects()
Returns a list<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!

Specified by:
getNonTextualObjects in interface SignatureInformation
Returns:
List<NonTextObjectInfo or null of not available (binary signature)

hasNonTextualObjects

boolean hasNonTextualObjects()
Returns true if non textual objects have been found, false if not.

Specified by:
hasNonTextualObjects in interface SignatureInformation
Returns:
true if non textual objects have been found, false if not.

getReconstructedXMLDsig

XMLDsigData getReconstructedXMLDsig()
Get the reconstructed xmldsig XML data. The reconstruction is done during the verification process.

Returns:
See Also:
PdfAs.reconstructXMLDSIG(at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigParameters), PdfAs.reconstructXMLDSIG(at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigAfterAnalysisParameters)


Copyright © 2006-2011. All Rights Reserved.