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 .
 List getPublicProperties()
          Returns a list of Strings each stating one public property of the certificate.
 SignatureCheck getValueCheckCode()
          Returns the result of the value (and hash) check.
 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 if public authority is indicated.
 boolean isQualifiedCertificate()
          Returns true, if the signer's certificate is a qualified certificate.
 
Methods inherited from interface at.gv.egiz.pdfas.api.commons.SignatureInformation
getInternalSignatureInformation, getSignatureType, getSignedData, getSignerCertificate, getSigningTime, getTimeStampValue, setNonTextualObjects
 

Method Detail

getCertificateCheck

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

Returns:
Returns the result of the certificate check.

getValueCheckCode

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

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

getManifestCheckCode

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

Returns:
Returns the result of the manifest check.

isQualifiedCertificate

public 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

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

Returns:
if public authority.

getPublicAuthorityCode

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

Returns:
The public authority code or .

getPublicProperties

public 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

public 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

public 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

public 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

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


Copyright © 2006-2010. All Rights Reserved.