Package eu.europa.esig.dss.asic.common
Class AbstractASiCContainerExtractor
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCContainerExtractor
- Direct Known Subclasses:
ASiCWithCAdESContainerExtractor,ASiCWithXAdESContainerExtractor
public abstract class AbstractASiCContainerExtractor extends Object
This class is used to read an ASiC Container and to retrieve its content files
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractASiCContainerExtractor(DSSDocument asicContainer)The default constructor -
Method Summary
Modifier and Type Method Description ASiCExtractResultextract()Extracts a content (documents) embedded into theasicContainerStringgetZipComment()Returns a zip commentStringfrom the ASiC containerprotected 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:
ASiCExtractResult
-
getZipComment
Returns a zip commentStringfrom the ASiC container- Returns:
Stringzip comment
-
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
-