Class PAdESTimestampDataBuilder
java.lang.Object
eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampDataBuilder
eu.europa.esig.dss.pades.validation.timestamp.PAdESTimestampDataBuilder
- All Implemented Interfaces:
TimestampDataBuilder
Builds a message-imprint for a PAdES timestamps
-
Constructor Summary
ConstructorsConstructorDescriptionPAdESTimestampDataBuilder(List<PdfRevision> documentRevisions, PAdESSignature signature, ListCertificateSource certificateSource) Default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetArchiveTimestampData(TimestampToken timestampToken) Archive timestamp seals the data of the signature in a specific order.getSignatureTimestampData(TimestampToken timestampToken) Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.getTimestampX1Data(TimestampToken timestampToken) Returns the data to be time-stamped.getTimestampX2Data(TimestampToken timestampToken) Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).voidsetSignatureTimestamps(List<TimestampToken> signatureTimestamps) Sets the extracted list of signature timestampsMethods inherited from class eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampDataBuilder
getContentTimestampData, getTimestampX1DataBytes, getTimestampX2DataBytes
-
Constructor Details
-
PAdESTimestampDataBuilder
public PAdESTimestampDataBuilder(List<PdfRevision> documentRevisions, PAdESSignature signature, ListCertificateSource certificateSource) Default constructor- Parameters:
documentRevisions- a list ofPdfRevisionssignature-PAdESSignaturecertificateSource-ListCertificateSource
-
-
Method Details
-
setSignatureTimestamps
Sets the extracted list of signature timestamps- Parameters:
signatureTimestamps- a list ofTimestampTokens
-
getSignatureTimestampData
Description copied from interface:TimestampDataBuilderReturns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Specified by:
getSignatureTimestampDatain interfaceTimestampDataBuilder- Overrides:
getSignatureTimestampDatain classCAdESTimestampDataBuilder- Parameters:
timestampToken-TimestampToken- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getTimestampX1Data
Description copied from interface:TimestampDataBuilderReturns the data to be time-stamped. The data contains the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.- Specified by:
getTimestampX1Datain interfaceTimestampDataBuilder- Overrides:
getTimestampX1Datain classCAdESTimestampDataBuilder- Parameters:
timestampToken-TimestampTokenor null during the creation process- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getTimestampX2Data
Description copied from interface:TimestampDataBuilderReturns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Specified by:
getTimestampX2Datain interfaceTimestampDataBuilder- Overrides:
getTimestampX2Datain classCAdESTimestampDataBuilder- Parameters:
timestampToken-TimestampToken- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getArchiveTimestampData
Description copied from interface:TimestampDataBuilderArchive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.- Specified by:
getArchiveTimestampDatain interfaceTimestampDataBuilder- Overrides:
getArchiveTimestampDatain classCAdESTimestampDataBuilder- Parameters:
timestampToken-TimestampTokennull when adding a new archive timestamp- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-