Class CAdESTimestampDataBuilder
java.lang.Object
eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampDataBuilder
- All Implemented Interfaces:
TimestampDataBuilder
- Direct Known Subclasses:
PAdESTimestampDataBuilder
Builds timestamped data binaries for a CAdES signature
-
Constructor Summary
ConstructorsConstructorDescriptionCAdESTimestampDataBuilder(CAdESSignature signature, ListCertificateSource certificateSource) The default constructor -
Method Summary
Modifier and TypeMethodDescriptiongetArchiveTimestampData(TimestampToken timestampToken) Archive timestamp seals the data of the signature in a specific order.getContentTimestampData(TimestampToken timestampToken) Returns the content timestamp data (timestamped or to be).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.protected byte[]This method computes a message-imprint for escTimeStampgetTimestampX2Data(TimestampToken timestampToken) Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).protected byte[]This method computes a message-imprint for certCRLTimestamp
-
Constructor Details
-
CAdESTimestampDataBuilder
The default constructor- Parameters:
signature-CAdESSignaturecontaining timestampscertificateSource-ListCertificateSourcemerged certificate source of the signature
-
-
Method Details
-
getContentTimestampData
Description copied from interface:TimestampDataBuilderReturns the content timestamp data (timestamped or to be).- Specified by:
getContentTimestampDatain interfaceTimestampDataBuilder- Parameters:
timestampToken-TimestampToken- 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- 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- Parameters:
timestampToken-TimestampTokenor null during the creation process- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getTimestampX1DataBytes
protected byte[] getTimestampX1DataBytes()This method computes a message-imprint for escTimeStamp- Returns:
- message-imprint octets
-
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- Parameters:
timestampToken-TimestampToken- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped
-
getTimestampX2DataBytes
protected byte[] getTimestampX2DataBytes()This method computes a message-imprint for certCRLTimestamp- Returns:
- message-imprint octets
-
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-TimestampTokennull when adding a new archive timestamp- Returns:
DSSDocumentrepresenting the canonicalized data to be timestamped- Throws:
DSSException
-