Class XMLEvidenceRecordRenewalDigestBuilderHelper
java.lang.Object
eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilderHelper
eu.europa.esig.dss.evidencerecord.xml.digest.XMLEvidenceRecordRenewalDigestBuilderHelper
public class XMLEvidenceRecordRenewalDigestBuilderHelper
extends AbstractEvidenceRecordRenewalDigestBuilderHelper
This class contains supporting method for XMLERS evidence record renewal
-
Field Summary
Fields inherited from class eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilderHelper
evidenceRecord
-
Constructor Summary
ConstructorDescriptionXMLEvidenceRecordRenewalDigestBuilderHelper
(XmlEvidenceRecord evidenceRecord) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbuildArchiveTimeStampSequenceDigest
(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, int archiveTimeStampChainOrder) This method builds digest for a time-stamp chain renewal with the specifieddigestAlgorithm
andcanonicalizationMethod
buildArchiveTimeStampSequenceDigest
(ArchiveTimeStampChainObject archiveTimeStampChain) Builds digest for renewal of the hash-tree, considering the providedarchiveTimeStampChainObject
as the last chain in the evidence record.buildTimeStampRenewalDigest
(ArchiveTimeStampObject archiveTimeStamp) This method builds digest for a time-stamp renewal using a digest algorithm from thebuildTimeStampRenewalDigest
(ArchiveTimeStampObject archiveTimeStamp, DigestAlgorithm digestAlgorithm, String canonicalizationMethod) This method builds digest for a time-stamp renewal with the specifieddigestAlgorithm
Methods inherited from class eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilderHelper
getArchiveTimeStampChainObject, getNextArchiveTimeStampChain
-
Constructor Details
-
XMLEvidenceRecordRenewalDigestBuilderHelper
Default constructor- Parameters:
evidenceRecord
-XmlEvidenceRecord
-
-
Method Details
-
buildTimeStampRenewalDigest
Description copied from class:AbstractEvidenceRecordRenewalDigestBuilderHelper
This method builds digest for a time-stamp renewal using a digest algorithm from the- Specified by:
buildTimeStampRenewalDigest
in classAbstractEvidenceRecordRenewalDigestBuilderHelper
- Parameters:
archiveTimeStamp
-ArchiveTimeStampObject
to build digest on- Returns:
Digest
-
buildTimeStampRenewalDigest
public DSSMessageDigest buildTimeStampRenewalDigest(ArchiveTimeStampObject archiveTimeStamp, DigestAlgorithm digestAlgorithm, String canonicalizationMethod) This method builds digest for a time-stamp renewal with the specifieddigestAlgorithm
- Parameters:
archiveTimeStamp
-ArchiveTimeStampObject
to build digest ondigestAlgorithm
-DigestAlgorithm
to be used on digest computationcanonicalizationMethod
-String
- Returns:
Digest
-
buildArchiveTimeStampSequenceDigest
public DSSMessageDigest buildArchiveTimeStampSequenceDigest(ArchiveTimeStampChainObject archiveTimeStampChain) Description copied from class:AbstractEvidenceRecordRenewalDigestBuilderHelper
Builds digest for renewal of the hash-tree, considering the providedarchiveTimeStampChainObject
as the last chain in the evidence record. Note: this method build digest solely forArchiveTimeStampChainObject
without considering detached content. Please use#buildHashTreeRenewalDigestGroup
method instead fo hash calculation in case of a hash-tree renewal with a new time-stamp- Specified by:
buildArchiveTimeStampSequenceDigest
in classAbstractEvidenceRecordRenewalDigestBuilderHelper
- Parameters:
archiveTimeStampChain
-ArchiveTimeStampChainObject
- Returns:
DSSMessageDigest
-
buildArchiveTimeStampSequenceDigest
public DSSMessageDigest buildArchiveTimeStampSequenceDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, int archiveTimeStampChainOrder) This method builds digest for a time-stamp chain renewal with the specifieddigestAlgorithm
andcanonicalizationMethod
- Parameters:
digestAlgorithm
-DigestAlgorithm
to be used on digest computationcanonicalizationMethod
-String
archiveTimeStampChainOrder
- of the time-stamp chain to compute digest for its first time-stamp- Returns:
Digest
-