Class ASiCEWithXAdESManifestBuilder
java.lang.Object
eu.europa.esig.dss.asic.xades.signature.asice.ASiCEWithXAdESManifestBuilder
This class is used to build the manifest.xml file (ASiC-E).
Sample:
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
<manifest:file-entry manifest:full-path="/" manifest:media-type="application/vnd.etsi.asic-e+zip"/>
<manifest:file-entry manifest:full-path="test.txt" manifest:media-type="text/plain"/>
<manifest:file-entry manifest:full-path="test-data-file.bin" manifest:media-type=
"application/octet-stream"/>
</manifest:manifest>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the XML manifestsetDocuments
(List<DSSDocument> documents) Sets documents to be included into the Manifest WARN: shall not be used together withsetEntries(entries)
setEntries
(List<ManifestEntry> entries) Sets manifest entries to be included into the Manifest WARN: shall not be used together withsetDocuments(documents)
setManifestFilename
(String manifestFilename) Sets the target name of the XML Manifest file to be created
-
Constructor Details
-
ASiCEWithXAdESManifestBuilder
public ASiCEWithXAdESManifestBuilder()Empty constructor
-
-
Method Details
-
setDocuments
Sets documents to be included into the Manifest WARN: shall not be used together withsetEntries(entries)
- Parameters:
documents
- list ofDSSDocument
s- Returns:
- this
ASiCEWithXAdESManifestBuilder
-
setEntries
Sets manifest entries to be included into the Manifest WARN: shall not be used together withsetDocuments(documents)
- Parameters:
entries
- list ofManifestEntry
s- Returns:
- this
ASiCEWithXAdESManifestBuilder
-
setManifestFilename
Sets the target name of the XML Manifest file to be created- Parameters:
manifestFilename
-String
- Returns:
- this
ASiCEWithXAdESManifestBuilder
-
build
-