Package eu.europa.esig.dss.asic.common
Class AbstractASiCContainerExtractor
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCContainerExtractor
- Direct Known Subclasses:
ASiCWithCAdESContainerExtractor,ASiCWithXAdESContainerExtractor
This class is used to read an ASiC Container and to retrieve its content files
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractASiCContainerExtractor(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionextract()Extracts a content (documents) embedded into theasicContainerprotected abstract booleanisAllowedArchiveManifest(String entryName) Checks if the givenStringfile name represents an allowed archive manifest name for the current ASiC container formatprotected abstract booleanisAllowedManifest(String entryName) Checks if the givenStringfile name represents an allowed manifest name for the current ASiC container formatprotected abstract booleanisAllowedSignature(String entryName) Checks if the givenStringfile name represents an allowed signature document name for the current ASiC container formatprotected abstract booleanisAllowedTimestamp(String entryName) Checks if the givenStringfile name represents an allowed timestamp document name for the current ASiC container format
-
Constructor Details
-
AbstractASiCContainerExtractor
The default constructor- Parameters:
asicContainer-DSSDocumentrepresenting an ASiC container to extract entries from
-
-
Method Details
-
extract
Extracts a content (documents) embedded into theasicContainer- Returns:
ASiCContent
-
isAllowedManifest
Checks if the givenStringfile name represents an allowed manifest name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed manifest document name, FALSE otherwise
-
isAllowedArchiveManifest
Checks if the givenStringfile name represents an allowed archive manifest name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed archive manifest document name, FALSE otherwise
-
isAllowedTimestamp
Checks if the givenStringfile name represents an allowed timestamp document name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed timestamp document name, FALSE otherwise
-
isAllowedSignature
Checks if the givenStringfile name represents an allowed signature document name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed signature document name, FALSE otherwise
-