public interface DocumentTimestamp extends PdfSignatureDetails
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)
|
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, getSigningTime, getSubfilter, isModified
iaik.tsp.TimeStampToken getDocumentTimeStamp() throws PdfSignatureException, java.io.IOException
PdfSignatureException
- if the timestamp can't be parsedjava.io.IOException
- if the timestamp can't be extractedPadesLTVParameters getLTVParams() throws PdfSignatureException, java.io.IOException
PdfSignatureException
- if some ltv data can't be parsedjava.io.IOException
- if some ltv data can't be readvoid verifyDocumentTimestamp(iaik.x509.X509Certificate tsa_certificate) throws iaik.tsp.TspVerificationException, PdfSignatureException, java.io.IOException
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 datavoid verifyDocumentTimestamp() throws iaik.tsp.TspVerificationException, PdfSignatureException, java.io.IOException
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