Class CAdESTimestampMessageDigestBuilder
java.lang.Object
eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampMessageDigestBuilder
- All Implemented Interfaces:
TimestampMessageDigestBuilder
public class CAdESTimestampMessageDigestBuilder
extends Object
implements TimestampMessageDigestBuilder
Builds timestamped data binaries for a CAdES signature
-
Constructor Summary
ConstructorDescriptionCAdESTimestampMessageDigestBuilder
(CAdESSignature signature, ListCertificateSource certificateSource, DigestAlgorithm digestAlgorithm) The constructor to compute message-imprint for timestamps related to thesignature
CAdESTimestampMessageDigestBuilder
(CAdESSignature signature, ListCertificateSource certificateSource, TimestampToken timestampToken) The constructor to compute message-imprint for timestamps related to thesignature
-
Method Summary
Modifier and TypeMethodDescriptionArchive timestamp seals the data of the signature in a specific order.Returns the content timestamp message-imprint digest (timestamped or to be).Returns the message-imprint digest on data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.Returns the message-imprint digest to be time-stamped.Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).
-
Constructor Details
-
CAdESTimestampMessageDigestBuilder
public CAdESTimestampMessageDigestBuilder(CAdESSignature signature, ListCertificateSource certificateSource, DigestAlgorithm digestAlgorithm) The constructor to compute message-imprint for timestamps related to thesignature
- Parameters:
signature
-CAdESSignature
to create timestamps forcertificateSource
-ListCertificateSource
merged certificate source of the signaturedigestAlgorithm
-DigestAlgorithm
to be used for message-imprint digest computation
-
CAdESTimestampMessageDigestBuilder
public CAdESTimestampMessageDigestBuilder(CAdESSignature signature, ListCertificateSource certificateSource, TimestampToken timestampToken) The constructor to compute message-imprint for timestamps related to thesignature
- Parameters:
signature
-CAdESSignature
containing timestampscertificateSource
-ListCertificateSource
merged certificate source of the signaturetimestampToken
-TimestampToken
to compute message-digest for
-
-
Method Details
-
getContentTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilder
Returns the content timestamp message-imprint digest (timestamped or to be).- Specified by:
getContentTimestampMessageDigest
in interfaceTimestampMessageDigestBuilder
- Returns:
DSSMessageDigest
representing the message digest on canonicalized data to be timestamped
-
getSignatureTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilder
Returns the message-imprint digest on data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Specified by:
getSignatureTimestampMessageDigest
in interfaceTimestampMessageDigestBuilder
- Returns:
DSSMessageDigest
representing the message-digest on canonicalized data to be timestamped
-
getTimestampX1MessageDigest
Description copied from interface:TimestampMessageDigestBuilder
Returns the message-imprint digest to be time-stamped. The data used to create digest 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:
getTimestampX1MessageDigest
in interfaceTimestampMessageDigestBuilder
- Returns:
DSSMessageDigest
representing the message digest on canonicalized data to be timestamped
-
getTimestampX2MessageDigest
Description copied from interface:TimestampMessageDigestBuilder
Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Specified by:
getTimestampX2MessageDigest
in interfaceTimestampMessageDigestBuilder
- Returns:
DSSMessageDigest
representing the message digest on canonicalized data to be timestamped
-
getArchiveTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilder
Archive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.- Specified by:
getArchiveTimestampMessageDigest
in interfaceTimestampMessageDigestBuilder
- Returns:
DSSMessageDigest
representing the message digest on canonicalized data to be timestamped
-