Class ASiCContentDocumentFilterFactory

java.lang.Object
eu.europa.esig.dss.asic.common.evidencerecord.ASiCContentDocumentFilterFactory

public class ASiCContentDocumentFilterFactory extends Object
Helper class to create eu.europa.esig.dss.asic.common.evidencerecord.ASiCContentDocumentFilter
  • Method Details

    • emptyFilter

      public static ASiCContentDocumentFilter emptyFilter()
      Creates an ASiCContentDocumentFilter with an empty configuration
      Returns:
      ASiCContentDocumentFilter
    • signedDocumentsOnlyFilter

      public static ASiCContentDocumentFilter signedDocumentsOnlyFilter(String... excludedFilenames)
      Creates an ASiCContentDocumentFilter with a configuration to return only original singed documents Note: This is a default configuration for an ASiCManifest (signed or time-stamped)
      Parameters:
      excludedFilenames - (optional) an array of Strings to be excluded (e.g. the current ASiCManifest.xml)
      Returns:
      ASiCContentDocumentFilter
    • archiveDocumentsFilter

      public static ASiCContentDocumentFilter archiveDocumentsFilter(String... excludedFilenames)
      Creates an ASiCContentDocumentFilter with a configuration returning original signed documents, signature and time-stamp documents, as well as the corresponding manifest files Note: This is a default configuration for an ASiCArchiveManifest
      Parameters:
      excludedFilenames - (optional) an array of Strings to be excluded (e.g. the current ASiCArchiveManifest.xml)
      Returns:
      ASiCContentDocumentFilter
    • allSupportedDocumentsFilter

      public static ASiCContentDocumentFilter allSupportedDocumentsFilter(String... excludedFilenames)
      Creates an ASiCContentDocumentFilter returning all recognized type documents available (without mimetype), within an eu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined in excludedFilenames
      Parameters:
      excludedFilenames - (optional) an array of Strings to be excluded
      Returns:
      ASiCContentDocumentFilter
    • allDocumentsFilter

      public static ASiCContentDocumentFilter allDocumentsFilter(String... excludedFilenames)
      Creates an ASiCContentDocumentFilter returning all documents available, including unrecognized documents and mimetype document, within an eu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined in excludedFilenames
      Parameters:
      excludedFilenames - (optional) an array of Strings to be excluded
      Returns:
      ASiCContentDocumentFilter
    • allowedFilenamesFilter

      public static ASiCContentDocumentFilter allowedFilenamesFilter(String... allowedFilenames)
      Creates an ASiCContentDocumentFilter returning all documents available, matching the array of allowedFilenames. Ignores all other documents.
      Parameters:
      allowedFilenames - an array of Strings to be allowed
      Returns:
      ASiCContentDocumentFilter