Package eu.europa.esig.dss.pdf
Class PdfDocTimestampRevision
java.lang.Object
eu.europa.esig.dss.pdf.PdfCMSRevision
eu.europa.esig.dss.pdf.PdfDocTimestampRevision
- All Implemented Interfaces:
PdfRevision
public class PdfDocTimestampRevision extends PdfCMSRevision
Signature timestamp representation
This class is only used in case of Document Timestamp (not signature-timestamp from CAdES/CMS)
-
Constructor Summary
Constructors Constructor Description PdfDocTimestampRevision(byte[] cms, PdfSignatureDictionary signatureDictionary, PdfDssDict timestampedDssDictionary, List<String> timestampFieldNames, CertificatePool validationCertPool, byte[] signedContent, boolean coverCompleteRevision)Default constructor to create PdfDocTimestampInfo -
Method Summary
Modifier and Type Method Description voidcheckIntegrityOnce()DategetSigningDate()TimestampTokengetTimestampToken()protected booleanisSignerInformationValidated(org.bouncycastle.cms.SignerInformation signerInformation)booleanisTimestampRevision()Methods inherited from class eu.europa.esig.dss.pdf.PdfCMSRevision
addOuterSignature, checkIntegrity, doesSignatureCoverAllOriginalBytes, getCMSSignedData, getContents, getDssDictionary, getFieldNames, getOuterSignatures, getPdfSigDictInfo, getSignatureByteRange, getSignatureInformationStore, getSignedDocumentBytes, uniqueId
-
Constructor Details
-
PdfDocTimestampRevision
public PdfDocTimestampRevision(byte[] cms, PdfSignatureDictionary signatureDictionary, PdfDssDict timestampedDssDictionary, List<String> timestampFieldNames, CertificatePool validationCertPool, byte[] signedContent, boolean coverCompleteRevision)Default constructor to create PdfDocTimestampInfo- Parameters:
validationCertPool- the certificate poolsignatureDictionary- the signature dictionarytimestampedDssDictionary- the covered DSS dictionarycms- the CMS (CAdES) bytessignedContent- the signed datacoverCompleteRevision- true if the signature covers all bytes
-
-
Method Details
-
checkIntegrityOnce
public void checkIntegrityOnce()- Specified by:
checkIntegrityOncein classPdfCMSRevision
-
isTimestampRevision
public boolean isTimestampRevision() -
getSigningDate
- Specified by:
getSigningDatein interfacePdfRevision- Overrides:
getSigningDatein classPdfCMSRevision
-
getTimestampToken
-
isSignerInformationValidated
protected boolean isSignerInformationValidated(org.bouncycastle.cms.SignerInformation signerInformation)- Specified by:
isSignerInformationValidatedin classPdfCMSRevision
-