Class CAdESTimestampDataBuilder
java.lang.Object
eu.europa.esig.dss.cades.validation.CAdESTimestampDataBuilder
- All Implemented Interfaces:
TimestampDataBuilder
- Direct Known Subclasses:
PAdESTimestampDataBuilder
public class CAdESTimestampDataBuilder extends Object implements TimestampDataBuilder
-
Constructor Summary
Constructors Modifier Constructor Description CAdESTimestampDataBuilder(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detachedDocuments, CadesLevelBaselineLTATimestampExtractor timestampExtractor)protectedCAdESTimestampDataBuilder(org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detachedDocuments) -
Method Summary
Modifier and Type Method Description DSSDocumentgetArchiveTimestampData(TimestampToken timestampToken)Archive timestamp seals the data of the signature in a specific order.DSSDocumentgetContentTimestampData(TimestampToken timestampToken)Returns the content timestamp data (timestamped or to be).DSSDocumentgetSignatureTimestampData(TimestampToken timestampToken)Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.DSSDocumentgetTimestampX1Data(TimestampToken timestampToken)Returns the data to be time-stamped.DSSDocumentgetTimestampX2Data(TimestampToken timestampToken)Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).
-
Constructor Details
-
CAdESTimestampDataBuilder
protected CAdESTimestampDataBuilder(org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detachedDocuments) -
CAdESTimestampDataBuilder
public CAdESTimestampDataBuilder(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.cms.SignerInformation signerInformation, List<DSSDocument> detachedDocuments, CadesLevelBaselineLTATimestampExtractor timestampExtractor)
-
-
Method Details
-
getContentTimestampData
Description copied from interface:TimestampDataBuilderReturns the content timestamp data (timestamped or to be).- Specified by:
getContentTimestampDatain interfaceTimestampDataBuilder- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getSignatureTimestampData
Description copied from interface:TimestampDataBuilderReturns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Specified by:
getSignatureTimestampDatain interfaceTimestampDataBuilder- 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- 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- 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- Parameters:
timestampToken- null when adding a new archive timestamp- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped- Throws:
DSSException
-