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, isModified
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getRevision, getRevision, getRevision, getSignatureDictionaryDate, getSubfilter, isModified
public java.util.Calendar getSigningTime()
PdfSignatureDetails
getSigningTime
in interface PdfSignatureDetails
public iaik.tsp.TimeStampToken getDocumentTimeStamp() throws PdfSignatureException, java.io.IOException
DocumentTimestamp
getDocumentTimeStamp
in interface DocumentTimestamp
PdfSignatureException
- if the timestamp can't be parsedjava.io.IOException
- if the timestamp can't be extractedpublic PadesLTVParameters getLTVParams() throws PdfSignatureException, java.io.IOException
DocumentTimestamp
getLTVParams
in interface DocumentTimestamp
PdfSignatureException
- 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
DocumentTimestamp
verifyDocumentTimestamp
in interface DocumentTimestamp
tsa_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
DocumentTimestamp
verifyDocumentTimestamp
in interface DocumentTimestamp
iaik.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