Class JAdESTimestampDataBuilder
java.lang.Object
eu.europa.esig.dss.jades.validation.timestamp.JAdESTimestampDataBuilder
- All Implemented Interfaces:
TimestampDataBuilder
Builds the message-imprint for JAdES timestamps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArchiveTimestampData(TimestampToken timestampToken) Archive timestamp seals the data of the signature in a specific order.protected byte[]getArchiveTimestampData(TimestampToken timestampToken, String canonicalizationMethod) Returns the message-imprint computed for the archivetimestampTokenbyte[]getArchiveTimestampData(String canonicalizationMethod) Returns ArchiveTimestamp Data for a new TimestampgetContentTimestampData(TimestampToken timestampToken) Returns the content timestamp data (timestamped or to be).byte[]Returns the message-imprint data for a SignatureTimestamp (BASE64URL(JWS Signature Value))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[]getTimestampX1Data(TimestampToken timestampToken, String canonicalizationMethod) Computes the message-imprint for SigRTst timestampgetTimestampX2Data(TimestampToken timestampToken) Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).protected byte[]getTimestampX2Data(TimestampToken timestampToken, String canonicalizationMethod) Computes the message-imprint for rfsTst timestamp
-
Constructor Details
-
JAdESTimestampDataBuilder
Default constructor- Parameters:
signature-JAdESSignature
-
-
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
-
getSignatureTimestampData
public byte[] getSignatureTimestampData()Returns the message-imprint data for a SignatureTimestamp (BASE64URL(JWS Signature Value))- Returns:
- byte array representing a message-imprint
-
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
-
getTimestampX1Data
Computes the message-imprint for SigRTst timestamp- Parameters:
timestampToken-TimestampTokenon signature validationcanonicalizationMethod-Stringcanonicalization method to use- 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
-
getTimestampX2Data
Computes the message-imprint for rfsTst timestamp- Parameters:
timestampToken-TimestampTokenon signature validationcanonicalizationMethod-Stringcanonicalization method to use- 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
-
getArchiveTimestampData
Returns ArchiveTimestamp Data for a new Timestamp- Parameters:
canonicalizationMethod-Stringcanonicalization method to use- Returns:
- byte array timestamp data
-
getArchiveTimestampData
protected byte[] getArchiveTimestampData(TimestampToken timestampToken, String canonicalizationMethod) Returns the message-imprint computed for the archivetimestampToken- Parameters:
timestampToken-TimestampTokenarchive timestamp tokencanonicalizationMethod-Stringif defined- Returns:
- message-imprint byte array
-