|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.impl.api.commons.SignatureInformationAdapter
at.gv.egiz.pdfas.impl.api.verify.VerifyResultAdapter
Implements the VerifyResult interface.
| Field Summary | |
protected SignatureResponse |
sigRes
|
protected Date |
vTime
|
| Fields inherited from class at.gv.egiz.pdfas.impl.api.commons.SignatureInformationAdapter |
nonTextualObjects, signatureHolder, timeStamp |
| Constructor Summary | |
VerifyResultAdapter(SignatureResponse sigRes,
SignatureHolder sh,
Date verificationTime)
Constructor. |
|
| 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. |
Object |
getInternalSignatureInformation()
Returns additional, internal information about the found signature. |
SignatureCheck |
getManifestCheckCode()
Returns the result of the manifest check. |
String |
getPublicAuthorityCode()
Returns the public authority code or . |
List |
getPublicProperties()
Returns a list of Strings each stating one public property of the certificate. |
X509Certificate |
getSignerCertificate()
Returns the certificate of the signer. |
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 |
isPublicAuthority()
Returns if public authority is indicated. |
boolean |
isQualifiedCertificate()
Returns true, if the signer's certificate is a qualified certificate. |
| Methods inherited from class at.gv.egiz.pdfas.impl.api.commons.SignatureInformationAdapter |
getNonTextualObjects, getSignatureType, getSignedData, getSigningTime, getTimeStampValue, hasNonTextualObjects, setNonTextualObjects |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface at.gv.egiz.pdfas.api.verify.VerifyResult |
getNonTextualObjects, hasNonTextualObjects |
| Methods inherited from interface at.gv.egiz.pdfas.api.commons.SignatureInformation |
getSignatureType, getSignedData, getSigningTime, getTimeStampValue, setNonTextualObjects |
| Field Detail |
protected SignatureResponse sigRes
protected Date vTime
| Constructor Detail |
public VerifyResultAdapter(SignatureResponse sigRes,
SignatureHolder sh,
Date verificationTime)
sigRes - The SignatureResponse.sh - The SignatureHolder.verificationTime - The time of verification. This is directly returned by getVerificationTime()| Method Detail |
public SignatureCheck getCertificateCheck()
VerifyResult
getCertificateCheck in interface VerifyResultVerifyResult.getCertificateCheck()public SignatureCheck getManifestCheckCode()
VerifyResult
getManifestCheckCode in interface VerifyResultVerifyResult.getManifestCheckCode()public SignatureCheck getValueCheckCode()
VerifyResult
getValueCheckCode in interface VerifyResultVerifyResult.getValueCheckCode()public Date getVerificationTime()
VerifyResult
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()).
getVerificationTime in interface VerifyResultVerifyResult.getVerificationTime()public boolean isQualifiedCertificate()
VerifyResult
isQualifiedCertificate in interface VerifyResultVerifyResult.isQualifiedCertificate()public List getPublicProperties()
VerifyResultSuch 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".
getPublicProperties in interface VerifyResultVerifyResult.getPublicProperties()public Object getInternalSignatureInformation()
SignatureInformationNote that this provides a way for developers to gather core information about the signature. What information is returned strongly depends on the core implementation.
getInternalSignatureInformation in interface SignatureInformationgetInternalSignatureInformation in class SignatureInformationAdapterSignatureInformation.getInternalSignatureInformation()public X509Certificate getSignerCertificate()
SignatureInformationInformation like subject name, issuer name or serial number can be retrieved form this certificate.
getSignerCertificate in interface SignatureInformationgetSignerCertificate in class SignatureInformationAdapterSignatureInformation.getSignerCertificate()public String getHashInputData()
VerifyResult
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.
getHashInputData in interface VerifyResultVerifyResult.getHashInputData()public String getPublicAuthorityCode()
VerifyResult
getPublicAuthorityCode in interface VerifyResultVerifyResult.getPublicAuthorityCode()public boolean isPublicAuthority()
VerifyResult
isPublicAuthority in interface VerifyResultVerifyResult.isPublicAuthority()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||