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
ConstructorsModifierConstructorDescriptionprotectedDefaultASiCContainerExtractor(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionextract()Extracts a content (documents) embedded into theasicContainerstatic ASiCContainerExtractorfromDocument(DSSDocument asicContainer) Loads an implementation ofASiCContainerExtractorcorresponding toasicContainertypeprotected abstract booleanisAllowedArchiveManifest(String entryName) Checks if the givenStringfile name represents an allowed archive manifest name for the current ASiC container formatprotected abstract booleanisAllowedEvidenceRecord(String entryName) Checks if the givenStringfile name represents an allowed evidence record document name for the current ASiC container formatprotected abstract booleanisAllowedEvidenceRecordManifest(String entryName) Checks if the givenStringfile name represents an allowed evidence record 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
-
DefaultASiCContainerExtractor
The default constructor- Parameters:
asicContainer-DSSDocumentrepresenting an ASiC container to extract entries from
-
-
Method Details
-
fromDocument
Loads an implementation ofASiCContainerExtractorcorresponding toasicContainertype- Parameters:
asicContainer-DSSDocumentrepresenting an ASiC archive- Returns:
ASiCContainerExtractor
-
extract
Description copied from interface:ASiCContainerExtractorExtracts a content (documents) embedded into theasicContainer- Specified by:
extractin interfaceASiCContainerExtractor- 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
-
isAllowedEvidenceRecordManifest
Checks if the givenStringfile name represents an allowed evidence record manifest name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed evidence record manifest 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
-
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
-
isAllowedEvidenceRecord
Checks if the givenStringfile name represents an allowed evidence record document name for the current ASiC container format- Parameters:
entryName-Stringdocument name to check- Returns:
- TRUE if the name represents an allowed evidence record document name, FALSE otherwise
-