Class ASiCEWithXAdESManifestBuilder

java.lang.Object
eu.europa.esig.dss.asic.xades.signature.asice.ASiCEWithXAdESManifestBuilder

public class ASiCEWithXAdESManifestBuilder extends Object
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 Details

    • ASiCEWithXAdESManifestBuilder

      public ASiCEWithXAdESManifestBuilder()
      Empty constructor
  • Method Details

    • setDocuments

      public ASiCEWithXAdESManifestBuilder setDocuments(List<eu.europa.esig.dss.model.DSSDocument> documents)
      Sets documents to be included into the Manifest WARN: shall not be used together with setEntries(entries)
      Parameters:
      documents - list of DSSDocuments
      Returns:
      this ASiCEWithXAdESManifestBuilder
    • setEntries

      public ASiCEWithXAdESManifestBuilder setEntries(List<eu.europa.esig.dss.model.ManifestEntry> entries)
      Sets manifest entries to be included into the Manifest WARN: shall not be used together with setDocuments(documents)
      Parameters:
      entries - list of ManifestEntrys
      Returns:
      this ASiCEWithXAdESManifestBuilder
    • setManifestFilename

      public ASiCEWithXAdESManifestBuilder setManifestFilename(String manifestFilename)
      Sets the target name of the XML Manifest file to be created
      Parameters:
      manifestFilename - String
      Returns:
      this ASiCEWithXAdESManifestBuilder
    • build

      public eu.europa.esig.dss.model.DSSDocument build()
      Builds the XML manifest
      Returns:
      DSSDocument