Class DefaultASiCContainerExtractor
java.lang.Object
eu.europa.esig.dss.asic.common.extract.DefaultASiCContainerExtractor
- All Implemented Interfaces:
ASiCContainerExtractor
- Direct Known Subclasses:
ASiCWithCAdESContainerExtractor
,ASiCWithXAdESContainerExtractor
public abstract class DefaultASiCContainerExtractor
extends Object
implements ASiCContainerExtractor
This class is used to read an ASiC Container and to retrieve its content files
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultASiCContainerExtractor
(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionextract()
Extracts a content (documents) embedded into theasicContainer
static ASiCContainerExtractor
fromDocument
(DSSDocument asicContainer) Loads an implementation ofASiCContainerExtractor
corresponding toasicContainer
typeprotected 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
isAllowedEvidenceRecord
(String entryName) Checks if the givenString
file name represents an allowed evidence record document name for the current ASiC container formatprotected abstract boolean
isAllowedEvidenceRecordManifest
(String entryName) Checks if the givenString
file name represents an allowed evidence record 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
-
DefaultASiCContainerExtractor
The default constructor- Parameters:
asicContainer
-DSSDocument
representing an ASiC container to extract entries from
-
-
Method Details
-
fromDocument
Loads an implementation ofASiCContainerExtractor
corresponding toasicContainer
type- Parameters:
asicContainer
-DSSDocument
representing an ASiC archive- Returns:
ASiCContainerExtractor
-
extract
Description copied from interface:ASiCContainerExtractor
Extracts a content (documents) embedded into theasicContainer
- Specified by:
extract
in interfaceASiCContainerExtractor
- 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
-
isAllowedEvidenceRecordManifest
Checks if the givenString
file name represents an allowed evidence record manifest name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed evidence record manifest 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
-
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
-
isAllowedEvidenceRecord
Checks if the givenString
file name represents an allowed evidence record document name for the current ASiC container format- Parameters:
entryName
-String
document name to check- Returns:
- TRUE if the name represents an allowed evidence record document name, FALSE otherwise
-