Class ASiCEvidenceRecordManifestBuilder
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
eu.europa.esig.dss.asic.common.evidencerecord.ASiCEvidenceRecordManifestBuilder
Builds an ASiCManifest for an Evidence Record
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
asicContent, digestAlgorithm, sigReferenceUri
-
Constructor Summary
ConstructorDescriptionASiCEvidenceRecordManifestBuilder
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String evidenceRecordFilename) Constructor to build a manifest from aASiCContent
representing the ASiC containerASiCEvidenceRecordManifestBuilder
(DSSDocument asicContainer, DigestAlgorithm digestAlgorithm, String evidenceRecordFilename) Constructor to build a manifest from aeu.europa.esig.dss.model.DSSDocument
representing the ASiC container -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns a final filename of the manifestprotected MimeType
(Optional) Returns theMimeType
to be used for a signature reference (signature or timestamp)protected ASiCContentDocumentFilter
Gets anASiCContentDocumentFilter
used to filter the documents to be referenced within ASiC ManifestsetAsicContentDocumentFilter
(ASiCContentDocumentFilter asicContentDocumentFilter) Sets anASiCContentDocumentFilter
used to filter the documents to compute hashes for.setEvidenceRecordFilenameFactory
(ASiCEvidenceRecordFilenameFactory evidenceRecordFilenameFactory) Sets an ASiC evidence record filename factory, used to provide a valid filename for the ASiC Evidence Record Manifest document to be created.Methods inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
addDataObjectReference, addDataObjectReferences, addSigReference, build, buildDom, createRootElement, getAsicContentDocumentFilter, isRootfile, toDSSDocument
-
Constructor Details
-
ASiCEvidenceRecordManifestBuilder
public ASiCEvidenceRecordManifestBuilder(DSSDocument asicContainer, DigestAlgorithm digestAlgorithm, String evidenceRecordFilename) Constructor to build a manifest from aeu.europa.esig.dss.model.DSSDocument
representing the ASiC container- Parameters:
asicContainer
-DSSDocument
digestAlgorithm
-DigestAlgorithm
to use for digest calculationevidenceRecordFilename
-String
the filename of the evidence record to be associated with the manifest
-
ASiCEvidenceRecordManifestBuilder
public ASiCEvidenceRecordManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String evidenceRecordFilename) Constructor to build a manifest from aASiCContent
representing the ASiC container- Parameters:
asicContent
-ASiCContent
digestAlgorithm
-DigestAlgorithm
to use for digest calculationevidenceRecordFilename
-String
the filename of the evidence record to be associated with the manifest
-
-
Method Details
-
getSigReferenceMimeType
Description copied from class:AbstractASiCManifestBuilder
(Optional) Returns theMimeType
to be used for a signature reference (signature or timestamp)- Specified by:
getSigReferenceMimeType
in classAbstractASiCManifestBuilder
- Returns:
MimeType
-
initDefaultAsicContentDocumentFilter
Description copied from class:AbstractASiCManifestBuilder
Gets anASiCContentDocumentFilter
used to filter the documents to be referenced within ASiC Manifest- Specified by:
initDefaultAsicContentDocumentFilter
in classAbstractASiCManifestBuilder
- Returns:
ASiCContentDocumentFilter
-
setAsicContentDocumentFilter
public ASiCEvidenceRecordManifestBuilder setAsicContentDocumentFilter(ASiCContentDocumentFilter asicContentDocumentFilter) Description copied from class:AbstractASiCManifestBuilder
Sets anASiCContentDocumentFilter
used to filter the documents to compute hashes for. When not set, a defaultASiCContentDocumentFilter
is used for the given manifest type.- Overrides:
setAsicContentDocumentFilter
in classAbstractASiCManifestBuilder
- Parameters:
asicContentDocumentFilter
-ASiCContentDocumentFilter
- Returns:
- this
ASiCEvidenceRecordDigestBuilder
-
setEvidenceRecordFilenameFactory
public ASiCEvidenceRecordManifestBuilder setEvidenceRecordFilenameFactory(ASiCEvidenceRecordFilenameFactory evidenceRecordFilenameFactory) Sets an ASiC evidence record filename factory, used to provide a valid filename for the ASiC Evidence Record Manifest document to be created. Note: when not set, finalDSSDocument
will have name set to NULL.- Parameters:
evidenceRecordFilenameFactory
-ASiCEvidenceRecordFilenameFactory
- Returns:
- this
ASiCEvidenceRecordManifestBuilder
-
getManifestFilename
Description copied from class:AbstractASiCManifestBuilder
Returns a final filename of the manifest- Specified by:
getManifestFilename
in classAbstractASiCManifestBuilder
- Returns:
String
-