Class AbstractASiCWithCAdESContainerMerger
java.lang.Object
eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
eu.europa.esig.dss.asic.cades.merge.AbstractASiCWithCAdESContainerMerger
- All Implemented Interfaces:
ASiCContainerMerger
- Direct Known Subclasses:
ASiCEWithCAdESContainerMerger
,ASiCSWithCAdESContainerMerger
This class contains common code for ASiC with CAdES container merger classes.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ASiCWithCAdESFilenameFactory
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
AbstractASiCWithCAdESContainerMerger
(ASiCContent... asicContents) This constructor is used to create an ASiC With CAdES from to givenASiCContent
sprotected
AbstractASiCWithCAdESContainerMerger
(DSSDocument... containers) This constructor is used to create an ASiC With CAdES container merger from provided container documents -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<DSSDocument> getAllSignatureDocuments
(ASiCContent... asicContents) This method returns all signature documents extracted from givenASiCContent
containersprotected 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 classprotected DSSDocument
mergeCmsSignatures
(List<DSSDocument> signatureDocuments) This method merges signature documents representing CMS signatures into single CMS signature document.void
setAsicFilenameFactory
(ASiCWithCAdESFilenameFactory asicFilenameFactory) SetsASiCWithCAdESFilenameFactory
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
-
AbstractASiCWithCAdESContainerMerger
This constructor is used to create an ASiC With CAdES container merger from provided container documents- Parameters:
containers
-DSSDocument
containers to be merged
-
AbstractASiCWithCAdESContainerMerger
This constructor is used to create an ASiC With CAdES from to givenASiCContent
s- Parameters:
asicContents
-ASiCContent
s to be merged
-
-
Method Details
-
setAsicFilenameFactory
SetsASiCWithCAdESFilenameFactory
defining a set of rules for naming of newly create ZIP entries, such as signature files.- Parameters:
asicFilenameFactory
-ASiCWithCAdESFilenameFactory
-
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
-
mergeCmsSignatures
This method merges signature documents representing CMS signatures into single CMS signature document.- Parameters:
signatureDocuments
- a list ofDSSDocument
s representing CMS signatures to be merged- Returns:
- merged CMS
DSSDocument
-
getAllSignatureDocuments
This method returns all signature documents extracted from givenASiCContent
containers- Parameters:
asicContents
-ASiCContent
s- Returns:
- a list of
DSSDocument
s
-