public class DocumentTimestampItext extends PdfSignatureDetailsItext implements DocumentTimestamp
| Modifier and Type | Method and Description |
|---|---|
iaik.tsp.TimeStampToken |
getDocumentTimeStamp()
Extract the timestamp token object from the document timestamp.
|
PadesLTVParameters |
getLTVParams()
Get the LTV data protected by this document timestamp (all ltv data up to timestamp creation)
|
java.util.Calendar |
getSigningTime()
Get the time of signature creation.
|
void |
verifyDocumentTimestamp()
Verify the included timestamp, i.e.
|
void |
verifyDocumentTimestamp(iaik.x509.X509Certificate tsa_certificate)
Verify the included timestamp, i.e.
|
getName, getRevision, getRevision, getRevision, getSignatureDictionaryDate, getSubfilter, isModifiedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getRevision, getRevision, getRevision, getSignatureDictionaryDate, getSubfilter, isModifiedpublic java.util.Calendar getSigningTime()
PdfSignatureDetailsgetSigningTime in interface PdfSignatureDetailspublic iaik.tsp.TimeStampToken getDocumentTimeStamp()
throws PdfSignatureException,
java.io.IOException
DocumentTimestampgetDocumentTimeStamp in interface DocumentTimestampPdfSignatureException - if the timestamp can't be parsedjava.io.IOException - if the timestamp can't be extractedpublic PadesLTVParameters getLTVParams() throws PdfSignatureException, java.io.IOException
DocumentTimestampgetLTVParams in interface DocumentTimestampPdfSignatureException - if some ltv data can't be parsedjava.io.IOException - if some ltv data can't be readpublic void verifyDocumentTimestamp(iaik.x509.X509Certificate tsa_certificate)
throws iaik.tsp.TspVerificationException,
PdfSignatureException,
java.io.IOException
DocumentTimestampverifyDocumentTimestamp in interface DocumentTimestamptsa_certificate - timestamp authority's certificate if not included in the timestampiaik.tsp.TspVerificationException - if signature of timestamp token is invalid or timestamp can't be parsedPdfSignatureException - if the timestamp or the tsa certificate can't be extracted or if timestamped data has
been changedjava.io.IOException - if errors occur when reading the timestamp or timestamped datapublic void verifyDocumentTimestamp()
throws iaik.tsp.TspVerificationException,
PdfSignatureException,
java.io.IOException
DocumentTimestampverifyDocumentTimestamp in interface DocumentTimestampiaik.tsp.TspVerificationException - if signature of timestamp token is invalid or timestamp can't be parsedPdfSignatureException - if the timestamp or the tsa certificate can't be extracted or if timestamped data has
been changedjava.io.IOException - if errors occur when reading the timestamp or timestamped data