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
ModifierConstructorDescriptionprotected
AbstractASiCContainerExtractor
(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionextract()
Extracts a content (documents) embedded into theasicContainer
protected abstract boolean
isAllowedArchiveManifest
(String entryName) Checks if the givenString
file name represents an allowed archive manifest name for the current ASiC container formatprotected abstract boolean
isAllowedManifest
(String entryName) Checks if the givenString
file name represents an allowed manifest name for the current ASiC container formatprotected abstract boolean
isAllowedSignature
(String entryName) Checks if the givenString
file name represents an allowed signature document name for the current ASiC container formatprotected abstract boolean
isAllowedTimestamp
(String entryName) Checks if the givenString
file name represents an allowed timestamp document name for the current ASiC container format
-
Constructor Details
-
AbstractASiCContainerExtractor
The default constructor- Parameters:
asicContainer
-DSSDocument
representing an ASiC container to extract entries from
-
-
Method Details
-
extract
Extracts a content (documents) embedded into theasicContainer
- Returns:
ASiCContent
-
isAllowedManifest
Checks if the givenString
file name represents an allowed manifest name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed manifest document name, FALSE otherwise
-
isAllowedArchiveManifest
Checks if the givenString
file name represents an allowed archive manifest name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed archive manifest document name, FALSE otherwise
-
isAllowedTimestamp
Checks if the givenString
file name represents an allowed timestamp document name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed timestamp document name, FALSE otherwise
-
isAllowedSignature
Checks if the givenString
file name represents an allowed signature document name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed signature document name, FALSE otherwise
-