Class XMLEvidenceRecordDataObjectDigestBuilderFactory
java.lang.Object
eu.europa.esig.dss.evidencerecord.xml.digest.XMLEvidenceRecordDataObjectDigestBuilderFactory
- All Implemented Interfaces:
DataObjectDigestBuilderFactory
public class XMLEvidenceRecordDataObjectDigestBuilderFactory
extends Object
implements DataObjectDigestBuilderFactory
Creates a new instance of
eu.europa.esig.dss.evidencerecord.xml.digest.XMLEvidenceRecordDataObjectDigestBuilder
to compute hashes for RFC 6283 XMLERS evidence records-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(DSSDocument document) Creates an instance ofDataObjectDigestBuilder
to build hash for thedocument
, according to the given implementation, using a default digest algorithmcreate
(DSSDocument document, DigestAlgorithm digestAlgorithm) Creates an instance ofDataObjectDigestBuilder
to build hash for thedocument
, according to the given implementation, using a provideddigestAlgorithm
setCanonicalizationMethod
(String canonicalizationMethod) Sets a canonicalization method to be used Default: "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" canonicalization algorithm
-
Constructor Details
-
XMLEvidenceRecordDataObjectDigestBuilderFactory
public XMLEvidenceRecordDataObjectDigestBuilderFactory()Default constructor
-
-
Method Details
-
setCanonicalizationMethod
public XMLEvidenceRecordDataObjectDigestBuilderFactory setCanonicalizationMethod(String canonicalizationMethod) Sets a canonicalization method to be used Default: "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" canonicalization algorithm- Parameters:
canonicalizationMethod
-String
- Returns:
- this
XMLEvidenceRecordDataObjectDigestBuilderFactory
-
create
Description copied from interface:DataObjectDigestBuilderFactory
Creates an instance ofDataObjectDigestBuilder
to build hash for thedocument
, according to the given implementation, using a default digest algorithm- Specified by:
create
in interfaceDataObjectDigestBuilderFactory
- Parameters:
document
-DSSDocument
to compute hash for- Returns:
DataObjectDigestBuilder
-
create
Description copied from interface:DataObjectDigestBuilderFactory
Creates an instance ofDataObjectDigestBuilder
to build hash for thedocument
, according to the given implementation, using a provideddigestAlgorithm
- Specified by:
create
in interfaceDataObjectDigestBuilderFactory
- Parameters:
document
-DSSDocument
to compute hash fordigestAlgorithm
-DigestAlgorithm
to use- Returns:
DataObjectDigestBuilder
-