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
ConstructorsConstructorDescriptionCAdESTimestampMessageDigestBuilder(CAdESSignature signature, ListCertificateSource certificateSource, DigestAlgorithm digestAlgorithm) The constructor to compute message-imprint for timestamps related to thesignatureCAdESTimestampMessageDigestBuilder(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-CAdESSignatureto create timestamps forcertificateSource-ListCertificateSourcemerged certificate source of the signaturedigestAlgorithm-DigestAlgorithmto 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-CAdESSignaturecontaining timestampscertificateSource-ListCertificateSourcemerged certificate source of the signaturetimestampToken-TimestampTokento compute message-digest for
-
-
Method Details
-
getContentTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilderReturns the content timestamp message-imprint digest (timestamped or to be).- Specified by:
getContentTimestampMessageDigestin interfaceTimestampMessageDigestBuilder- Returns:
DSSMessageDigestrepresenting the message digest on canonicalized data to be timestamped
-
getSignatureTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilderReturns the message-imprint digest on data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.- Specified by:
getSignatureTimestampMessageDigestin interfaceTimestampMessageDigestBuilder- Returns:
DSSMessageDigestrepresenting the message-digest on canonicalized data to be timestamped
-
getTimestampX1MessageDigest
Description copied from interface:TimestampMessageDigestBuilderReturns 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:
getTimestampX1MessageDigestin interfaceTimestampMessageDigestBuilder- Returns:
DSSMessageDigestrepresenting the message digest on canonicalized data to be timestamped
-
getTimestampX2MessageDigest
Description copied from interface:TimestampMessageDigestBuilderReturns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).- Specified by:
getTimestampX2MessageDigestin interfaceTimestampMessageDigestBuilder- Returns:
DSSMessageDigestrepresenting the message digest on canonicalized data to be timestamped
-
getArchiveTimestampMessageDigest
Description copied from interface:TimestampMessageDigestBuilderArchive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.- Specified by:
getArchiveTimestampMessageDigestin interfaceTimestampMessageDigestBuilder- Returns:
DSSMessageDigestrepresenting the message digest on canonicalized data to be timestamped
-