Class AbstractEvidenceRecordRenewalDigestBuilderHelper
java.lang.Object
eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilderHelper
- Direct Known Subclasses:
ASN1ArchiveTimeStampSequenceDigestHelper
,XMLEvidenceRecordRenewalDigestBuilderHelper
Abstract class containing common supporting methods for evidence record digest calculation
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DefaultEvidenceRecord
Evidence record to compute digest for -
Constructor Summary
ModifierConstructorDescriptionprotected
Creates an instance ofAbstractEvidenceRecordRenewalDigestBuilderHelper
allowing to build hash forXmlEvidenceRecord
's renewal. -
Method Summary
Modifier and TypeMethodDescriptionabstract DSSMessageDigest
buildArchiveTimeStampSequenceDigest
(ArchiveTimeStampChainObject archiveTimeStampChain) Builds digest for renewal of the hash-tree, considering the providedarchiveTimeStampChainObject
as the last chain in the evidence record.abstract DSSMessageDigest
buildTimeStampRenewalDigest
(ArchiveTimeStampObject archiveTimeStamp) This method builds digest for a time-stamp renewal using a digest algorithm from theprotected ArchiveTimeStampChainObject
getArchiveTimeStampChainObject
(ArchiveTimeStampObject archiveTimeStampObject) Returns anArchiveTimeStampChainObject
corresponding to the givenarchiveTimeStampObject
protected ArchiveTimeStampChainObject
getNextArchiveTimeStampChain
(ArchiveTimeStampChainObject archiveTimeStampChainObject) Returns the next chronologically orderedArchiveTimeStampChainObject
-
Field Details
-
evidenceRecord
Evidence record to compute digest for
-
-
Constructor Details
-
AbstractEvidenceRecordRenewalDigestBuilderHelper
Creates an instance ofAbstractEvidenceRecordRenewalDigestBuilderHelper
allowing to build hash forXmlEvidenceRecord
's renewal. Builds digest for the last available ArchiveTimeStamp or ArchiveTimeStampChain, based on the called method.- Parameters:
evidenceRecord
-DefaultEvidenceRecord
-
-
Method Details
-
getArchiveTimeStampChainObject
protected ArchiveTimeStampChainObject getArchiveTimeStampChainObject(ArchiveTimeStampObject archiveTimeStampObject) Returns anArchiveTimeStampChainObject
corresponding to the givenarchiveTimeStampObject
- Parameters:
archiveTimeStampObject
-ArchiveTimeStampObject
to getArchiveTimeStampChainObject
for- Returns:
ArchiveTimeStampChainObject
-
buildTimeStampRenewalDigest
public abstract DSSMessageDigest buildTimeStampRenewalDigest(ArchiveTimeStampObject archiveTimeStamp) This method builds digest for a time-stamp renewal using a digest algorithm from the- Parameters:
archiveTimeStamp
-ArchiveTimeStampObject
to build digest on- Returns:
Digest
-
buildArchiveTimeStampSequenceDigest
public abstract DSSMessageDigest buildArchiveTimeStampSequenceDigest(ArchiveTimeStampChainObject archiveTimeStampChain) 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- Parameters:
archiveTimeStampChain
-ArchiveTimeStampChainObject
- Returns:
DSSMessageDigest
-
getNextArchiveTimeStampChain
protected ArchiveTimeStampChainObject getNextArchiveTimeStampChain(ArchiveTimeStampChainObject archiveTimeStampChainObject) Returns the next chronologically orderedArchiveTimeStampChainObject
- Parameters:
archiveTimeStampChainObject
-ArchiveTimeStampChainObject
to get a parent for- Returns:
ArchiveTimeStampChainObject
-