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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(DSSDocument document) Creates an instance ofDataObjectDigestBuilderto build hash for thedocument, according to the given implementation, using a default digest algorithmcreate(DSSDocument document, DigestAlgorithm digestAlgorithm) Creates an instance ofDataObjectDigestBuilderto build hash for thedocument, according to the given implementation, using a provideddigestAlgorithmsetCanonicalizationMethod(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:DataObjectDigestBuilderFactoryCreates an instance ofDataObjectDigestBuilderto build hash for thedocument, according to the given implementation, using a default digest algorithm- Specified by:
createin interfaceDataObjectDigestBuilderFactory- Parameters:
document-DSSDocumentto compute hash for- Returns:
DataObjectDigestBuilder
-
create
Description copied from interface:DataObjectDigestBuilderFactoryCreates an instance ofDataObjectDigestBuilderto build hash for thedocument, according to the given implementation, using a provideddigestAlgorithm- Specified by:
createin interfaceDataObjectDigestBuilderFactory- Parameters:
document-DSSDocumentto compute hash fordigestAlgorithm-DigestAlgorithmto use- Returns:
DataObjectDigestBuilder
-