Module jpms_dss_asic_common
Class ASiCContentDocumentFilterFactory
java.lang.Object
eu.europa.esig.dss.asic.common.evidencerecord.ASiCContentDocumentFilterFactory
Helper class to create
eu.europa.esig.dss.asic.common.evidencerecord.ASiCContentDocumentFilter-
Method Summary
Modifier and TypeMethodDescriptionstatic ASiCContentDocumentFilterallDocumentsFilter(String... excludedFilenames) Creates anASiCContentDocumentFilterreturning all documents available, including unrecognized documents and mimetype document, within aneu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined inexcludedFilenamesstatic ASiCContentDocumentFilterallowedFilenamesFilter(String... allowedFilenames) Creates anASiCContentDocumentFilterreturning all documents available, matching the array ofallowedFilenames.static ASiCContentDocumentFilterallSupportedDocumentsFilter(String... excludedFilenames) Creates anASiCContentDocumentFilterreturning all recognized type documents available (without mimetype), within aneu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined inexcludedFilenamesstatic ASiCContentDocumentFilterarchiveDocumentsFilter(String... excludedFilenames) Creates anASiCContentDocumentFilterwith 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 ASiCArchiveManifeststatic ASiCContentDocumentFilterCreates anASiCContentDocumentFilterwith an empty configurationstatic ASiCContentDocumentFiltersignedDocumentsOnlyFilter(String... excludedFilenames) Creates anASiCContentDocumentFilterwith a configuration to return only original singed documents Note: This is a default configuration for an ASiCManifest (signed or time-stamped)
-
Method Details
-
emptyFilter
Creates anASiCContentDocumentFilterwith an empty configuration- Returns:
ASiCContentDocumentFilter
-
signedDocumentsOnlyFilter
Creates anASiCContentDocumentFilterwith 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 ofStrings to be excluded (e.g. the current ASiCManifest.xml)- Returns:
ASiCContentDocumentFilter
-
archiveDocumentsFilter
Creates anASiCContentDocumentFilterwith 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 ofStrings to be excluded (e.g. the current ASiCArchiveManifest.xml)- Returns:
ASiCContentDocumentFilter
-
allSupportedDocumentsFilter
Creates anASiCContentDocumentFilterreturning all recognized type documents available (without mimetype), within aneu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined inexcludedFilenames- Parameters:
excludedFilenames- (optional) an array ofStrings to be excluded- Returns:
ASiCContentDocumentFilter
-
allDocumentsFilter
Creates anASiCContentDocumentFilterreturning all documents available, including unrecognized documents and mimetype document, within aneu.europa.esig.dss.asic.common.ASiCContent, excluding the documents with filenames defined inexcludedFilenames- Parameters:
excludedFilenames- (optional) an array ofStrings to be excluded- Returns:
ASiCContentDocumentFilter
-
allowedFilenamesFilter
Creates anASiCContentDocumentFilterreturning all documents available, matching the array ofallowedFilenames. Ignores all other documents.- Parameters:
allowedFilenames- an array ofStrings to be allowed- Returns:
ASiCContentDocumentFilter
-