|
|||||||||||
| 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
Adapter that converts a framework SignatureHolder to an API SignatureInformation.
| Field Summary | |
protected List |
nonTextualObjects
|
protected SignatureHolder |
signatureHolder
The framework SignatureHolder to be adapted to an API SignatureInformation. |
protected String |
timeStamp
|
| Constructor Summary | |
SignatureInformationAdapter(SignatureHolder signatureHolder)
Constructor. |
|
| Method Summary | |
Object |
getInternalSignatureInformation()
Returns additional, internal information about the found signature. |
List |
getNonTextualObjects()
Returns a list< NonTextObjectInfo> of non textual objects in the pdf document.
|
String |
getSignatureType()
Returns the type of this signature (binary/textual). |
DataSource |
getSignedData()
Returns the DataSource providing the data that was signed. |
X509Certificate |
getSignerCertificate()
Returns the certificate of the signer. |
Date |
getSigningTime()
Returns the signing time, which is the time when the signature was created. |
String |
getTimeStampValue()
Returns the embedded /TimeStamp value (b64 encoded) from the signature if available. |
boolean |
hasNonTextualObjects()
Returns true if non textual objects have been found, false if not. |
void |
setNonTextualObjects(List nonTextualObjects)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SignatureHolder signatureHolder
protected String timeStamp
protected List nonTextualObjects
| Constructor Detail |
public SignatureInformationAdapter(SignatureHolder signatureHolder)
signatureHolder - The framework SignatureHolder to be adapted to an API
SignatureInformation.| Method Detail |
public DataSource getSignedData()
SignatureInformationNote that this is the signed data as sent to the verification device by PDF-AS. The verification device (e.g. MOA) may perform several other transformations on the data before feeding it to the signature hash function. To get the actual hashed data use the ReturnHashInputData mechanism (which is very slow).
getSignedData in interface SignatureInformationSignatureInformation.getSignedData()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 SignatureInformationSignatureInformation.getInternalSignatureInformation()public String getSignatureType()
SignatureInformation
May be Constants.SIGNATURE_TYPE_BINARY or
Constants.SIGNATURE_TYPE_TEXTUAL.
getSignatureType in interface SignatureInformationSignatureInformation.getSignatureType()public X509Certificate getSignerCertificate()
SignatureInformationInformation like subject name, issuer name or serial number can be retrieved form this certificate.
getSignerCertificate in interface SignatureInformationSignatureInformation.getSignerCertificate()public Date getSigningTime()
SignatureInformation
getSigningTime in interface SignatureInformationSignatureInformation.getSigningTime()public String getTimeStampValue()
SignatureInformation
getTimeStampValue in interface SignatureInformationpublic List getNonTextualObjects()
SignatureInformationNonTextObjectInfo> 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 SignatureInformationNonTextObjectInfo or null of not available (binary signature)public boolean hasNonTextualObjects()
SignatureInformationtrue if non textual objects have been found, false if not.
hasNonTextualObjects in interface SignatureInformationtrue if non textual objects have been found, false if not.public void setNonTextualObjects(List nonTextualObjects)
setNonTextualObjects in interface SignatureInformation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||