Class AbstractASiCWithXAdESContainerMerger
java.lang.Object
eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
eu.europa.esig.dss.asic.xades.merge.AbstractASiCWithXAdESContainerMerger
- All Implemented Interfaces:
ASiCContainerMerger
- Direct Known Subclasses:
ASiCEWithXAdESContainerMerger
,ASiCSWithXAdESContainerMerger
This class contains common code for ASiC with XAdES container merger classes.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ASiCWithXAdESFilenameFactory
Defines rules for filename creation for new ZIP entries (e.g. signature files, etc.)Fields inherited from class eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
asicContents, DEFAULT_DIGEST_ALGORITHM
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractASiCWithXAdESContainerMerger
(ASiCContent... asicContents) This constructor is used to create an ASiC With XAdES from to givenASiCContent
sprotected
AbstractASiCWithXAdESContainerMerger
(DSSDocument... containers) This constructor is used to create an ASiC With XAdES container merger from provided container documents -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultASiCContainerExtractor
getContainerExtractor
(DSSDocument container) This method returns a relevant ASiC container extractorprotected boolean
isSupported
(ASiCContent asicContent) This method verifies whether the providedASiCContent
is supported by the current classprotected boolean
isSupported
(DSSDocument container) This method verifies whether the providedcontainer
is supported by the current classvoid
setAsicFilenameFactory
(ASiCWithXAdESFilenameFactory asicFilenameFactory) SetsASiCWithXAdESFilenameFactory
defining a set of rules for naming of newly create ZIP entries, such as signature files.Methods inherited from class eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
createEmptyContainer, createMergedResult, ensureContainerContentAllowMerge, ensureSignaturesAllowMerge, fromASiCContents, fromDocuments, getCreationTime, getFinalContainerName, getTargetASiCContainerType, isSupported, isSupported, merge, mergeToASiCContent, setCreationTime
-
Field Details
-
asicFilenameFactory
Defines rules for filename creation for new ZIP entries (e.g. signature files, etc.)
-
-
Constructor Details
-
AbstractASiCWithXAdESContainerMerger
This constructor is used to create an ASiC With XAdES container merger from provided container documents- Parameters:
containers
-DSSDocument
s representing ASiC containers to be merged
-
AbstractASiCWithXAdESContainerMerger
This constructor is used to create an ASiC With XAdES from to givenASiCContent
s- Parameters:
asicContents
-ASiCContent
s to be merged
-
-
Method Details
-
setAsicFilenameFactory
SetsASiCWithXAdESFilenameFactory
defining a set of rules for naming of newly create ZIP entries, such as signature files.- Parameters:
asicFilenameFactory
-ASiCWithXAdESFilenameFactory
-
isSupported
Description copied from class:DefaultContainerMerger
This method verifies whether the providedcontainer
is supported by the current class- Specified by:
isSupported
in classDefaultContainerMerger
- Parameters:
container
-DSSDocument
to verify- Returns:
- TRUE if the container is supported, FALSE otherwise
-
isSupported
Description copied from class:DefaultContainerMerger
This method verifies whether the providedASiCContent
is supported by the current class- Specified by:
isSupported
in classDefaultContainerMerger
- Parameters:
asicContent
-ASiCContent
to verify- Returns:
- TRUE if the ASIC Content is supported, FALSE otherwise
-
getContainerExtractor
Description copied from class:DefaultContainerMerger
This method returns a relevant ASiC container extractor- Specified by:
getContainerExtractor
in classDefaultContainerMerger
- Parameters:
container
-DSSDocument
representing a container to be extracted- Returns:
DefaultASiCContainerExtractor
-