Class PAdESTimestampDataBuilder
java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESTimestampDataBuilder
eu.europa.esig.dss.pades.validation.PAdESTimestampDataBuilder
- All Implemented Interfaces:
TimestampDataBuilder
public class PAdESTimestampDataBuilder extends CAdESTimestampDataBuilder
-
Constructor Summary
Constructors Constructor Description PAdESTimestampDataBuilder(PdfRevision pdfSignatureRevision, org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detacheDocuments)
-
Method Summary
Modifier and Type Method Description DSSDocument
getArchiveTimestampData(TimestampToken timestampToken)
Archive timestamp seals the data of the signature in a specific order.DSSDocument
getSignatureTimestampData(TimestampToken timestampToken)
Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.DSSDocument
getTimestampX1Data(TimestampToken timestampToken)
Returns the data to be time-stamped.DSSDocument
getTimestampX2Data(TimestampToken timestampToken)
Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).void
setSignatureTimestamps(List<TimestampToken> signatureTimestamps)
Methods inherited from class eu.europa.esig.dss.cades.validation.CAdESTimestampDataBuilder
getContentTimestampData
-
Constructor Details
-
PAdESTimestampDataBuilder
public PAdESTimestampDataBuilder(PdfRevision pdfSignatureRevision, org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detacheDocuments)
-
-
Method Details
-
setSignatureTimestamps
-
getSignatureTimestampData
Description copied from interface:TimestampDataBuilder
Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Specified by:
getSignatureTimestampData
in interfaceTimestampDataBuilder
- Overrides:
getSignatureTimestampData
in classCAdESTimestampDataBuilder
- Returns:
DSSDocument
representing the canonicalized data to be timestamped
-
getTimestampX1Data
Description copied from interface:TimestampDataBuilder
Returns 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:
getTimestampX1Data
in interfaceTimestampDataBuilder
- Overrides:
getTimestampX1Data
in classCAdESTimestampDataBuilder
- Parameters:
timestampToken
-TimestampToken
or null during the creation process- Returns:
DSSDocument
representing the canonicalized data to be timestamped
-
getTimestampX2Data
Description copied from interface:TimestampDataBuilder
Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Specified by:
getTimestampX2Data
in interfaceTimestampDataBuilder
- Overrides:
getTimestampX2Data
in classCAdESTimestampDataBuilder
- Returns:
DSSDocument
representing the canonicalized data to be timestamped
-
getArchiveTimestampData
Description copied from interface:TimestampDataBuilder
Archive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.- Specified by:
getArchiveTimestampData
in interfaceTimestampDataBuilder
- Overrides:
getArchiveTimestampData
in classCAdESTimestampDataBuilder
- Parameters:
timestampToken
- null when adding a new archive timestamp- Returns:
DSSDocument
representing the canonicalized data to be timestamped
-