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
FieldsModifier and TypeFieldDescriptionprotected ASiCWithXAdESFilenameFactoryDefines 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
ConstructorsModifierConstructorDescriptionprotectedAbstractASiCWithXAdESContainerMerger(ASiCContent... asicContents) This constructor is used to create an ASiC With XAdES from to givenASiCContentsprotectedAbstractASiCWithXAdESContainerMerger(DSSDocument... containers) This constructor is used to create an ASiC With XAdES container merger from provided container documents -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultASiCContainerExtractorgetContainerExtractor(DSSDocument container) This method returns a relevant ASiC container extractorprotected booleanisSupported(ASiCContent asicContent) This method verifies whether the providedASiCContentis supported by the current classprotected booleanisSupported(DSSDocument container) This method verifies whether the providedcontaineris supported by the current classvoidsetAsicFilenameFactory(ASiCWithXAdESFilenameFactory asicFilenameFactory) SetsASiCWithXAdESFilenameFactorydefining 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-DSSDocuments representing ASiC containers to be merged
-
AbstractASiCWithXAdESContainerMerger
This constructor is used to create an ASiC With XAdES from to givenASiCContents- Parameters:
asicContents-ASiCContents to be merged
-
-
Method Details
-
setAsicFilenameFactory
SetsASiCWithXAdESFilenameFactorydefining a set of rules for naming of newly create ZIP entries, such as signature files.- Parameters:
asicFilenameFactory-ASiCWithXAdESFilenameFactory
-
isSupported
Description copied from class:DefaultContainerMergerThis method verifies whether the providedcontaineris supported by the current class- Specified by:
isSupportedin classDefaultContainerMerger- Parameters:
container-DSSDocumentto verify- Returns:
- TRUE if the container is supported, FALSE otherwise
-
isSupported
Description copied from class:DefaultContainerMergerThis method verifies whether the providedASiCContentis supported by the current class- Specified by:
isSupportedin classDefaultContainerMerger- Parameters:
asicContent-ASiCContentto verify- Returns:
- TRUE if the ASIC Content is supported, FALSE otherwise
-
getContainerExtractor
Description copied from class:DefaultContainerMergerThis method returns a relevant ASiC container extractor- Specified by:
getContainerExtractorin classDefaultContainerMerger- Parameters:
container-DSSDocumentrepresenting a container to be extracted- Returns:
DefaultASiCContainerExtractor
-