Class ASN1EvidenceRecordRenewalDigestBuilder
java.lang.Object
eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilder
eu.europa.esig.dss.evidencerecord.asn1.digest.ASN1EvidenceRecordRenewalDigestBuilder
- All Implemented Interfaces:
EvidenceRecordRenewalDigestBuilder
public class ASN1EvidenceRecordRenewalDigestBuilder
extends AbstractEvidenceRecordRenewalDigestBuilder
This class builds digest for an RFC 4998 ERS evidence record's renewal
-
Field Summary
Fields inherited from class eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilder
detachedContent, digestAlgorithm, evidenceRecord
-
Constructor Summary
ConstructorDescriptionASN1EvidenceRecordRenewalDigestBuilder
(ASN1EvidenceRecord asn1EvidenceRecord) Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash forASN1EvidenceRecord
's renewal, with a default SHA256 digest algorithm to be used on hash-tree renewal computation (see note).ASN1EvidenceRecordRenewalDigestBuilder
(ASN1EvidenceRecord asn1EvidenceRecord, DigestAlgorithm digestAlgorithm) Creates an instance ofXMLEvidenceRecordRenewalDigestBuilder
allowing to build hash forXmlEvidenceRecord
's renewal, with the provideddigestAlgorithm
(see note below).Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash for ASN.1 evidence recorddocument
's renewal.ASN1EvidenceRecordRenewalDigestBuilder
(DSSDocument document, DigestAlgorithm digestAlgorithm) Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash for ASN.1 evidence recorddocument
's renewal, with the provideddigestAlgorithm
(see note below). -
Method Summary
Modifier and TypeMethodDescriptionThis method builds digest for a hash-tree renewal.This method builds digest for a time-stamp renewalprotected ASN1ArchiveTimeStampSequenceDigestHelper
This method returns a helper class containing supporting methods for digest computation in relation to an archive-time-stamp-sequencesetDetachedContent
(List<DSSDocument> detachedContent) Sets detached content to be used for a digest group hash computation on hash-tree renewal NOTE : at least one of the documents from the original data group should be provided for a correct hash-tree renewalMethods inherited from class eu.europa.esig.dss.evidencerecord.common.digest.AbstractEvidenceRecordRenewalDigestBuilder
getDigestAlgorithm, getLastArchiveTimeStampChainObject, getLastArchiveTimeStampObject
-
Constructor Details
-
ASN1EvidenceRecordRenewalDigestBuilder
Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash for ASN.1 evidence recorddocument
's renewal. Builds digest for the last available ArchiveTimeStamp or ArchiveTimeStampChain, based on the called method.- Parameters:
document
-DSSDocument
-
ASN1EvidenceRecordRenewalDigestBuilder
public ASN1EvidenceRecordRenewalDigestBuilder(DSSDocument document, DigestAlgorithm digestAlgorithm) Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash for ASN.1 evidence recorddocument
's renewal, with the provideddigestAlgorithm
(see note below). Builds digest for the last available ArchiveTimeStamp or ArchiveTimeStampChain, based on the called method. NOTE: time-stamp renewal uses digest algorithm extracted from the last ArchiveTimeStampChain.- Parameters:
document
-DSSDocument
digestAlgorithm
-DigestAlgorithm
to be used on hash-tree renewal hash computation
-
ASN1EvidenceRecordRenewalDigestBuilder
Creates an instance ofASN1EvidenceRecordRenewalDigestBuilder
allowing to build hash forASN1EvidenceRecord
's renewal, with a default SHA256 digest algorithm to be used on hash-tree renewal computation (see note). Builds digest for the last available ArchiveTimeStamp or ArchiveTimeStampChain, based on the called method. NOTE: time-stamp renewal uses digest algorithm extracted from the last ArchiveTimeStampChain.- Parameters:
asn1EvidenceRecord
-ASN1EvidenceRecord
-
ASN1EvidenceRecordRenewalDigestBuilder
public ASN1EvidenceRecordRenewalDigestBuilder(ASN1EvidenceRecord asn1EvidenceRecord, DigestAlgorithm digestAlgorithm) Creates an instance ofXMLEvidenceRecordRenewalDigestBuilder
allowing to build hash forXmlEvidenceRecord
's renewal, with the provideddigestAlgorithm
(see note below). Builds digest for the last available ArchiveTimeStamp or ArchiveTimeStampChain, based on the called method. NOTE: time-stamp renewal uses digest algorithm extracted from the last ArchiveTimeStampChain.- Parameters:
asn1EvidenceRecord
-ASN1EvidenceRecord
digestAlgorithm
-DigestAlgorithm
to be used on hash-tree renewal hash computation
-
-
Method Details
-
setDetachedContent
Description copied from class:AbstractEvidenceRecordRenewalDigestBuilder
Sets detached content to be used for a digest group hash computation on hash-tree renewal NOTE : at least one of the documents from the original data group should be provided for a correct hash-tree renewal- Overrides:
setDetachedContent
in classAbstractEvidenceRecordRenewalDigestBuilder
- Parameters:
detachedContent
- a list ofDSSDocument
detached documents- Returns:
- this builder
-
buildTimeStampRenewalDigest
Description copied from interface:EvidenceRecordRenewalDigestBuilder
This method builds digest for a time-stamp renewal- Specified by:
buildTimeStampRenewalDigest
in interfaceEvidenceRecordRenewalDigestBuilder
- Specified by:
buildTimeStampRenewalDigest
in classAbstractEvidenceRecordRenewalDigestBuilder
- Returns:
Digest
-
buildHashTreeRenewalDigestGroup
Description copied from interface:EvidenceRecordRenewalDigestBuilder
This method builds digest for a hash-tree renewal. NOTE: the corresponding detached contents may be required to be provided- Returns:
- a list of
Digest
s
-
getArchiveTimeStampSequenceDigestHelper
This method returns a helper class containing supporting methods for digest computation in relation to an archive-time-stamp-sequence
-