Class ASiCSWithCAdESContainerMerger
java.lang.Object
eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
eu.europa.esig.dss.asic.cades.merge.AbstractASiCWithCAdESContainerMerger
eu.europa.esig.dss.asic.cades.merge.ASiCSWithCAdESContainerMerger
- All Implemented Interfaces:
ASiCContainerMerger
This class is used to merge ASiC-S with CAdES containers.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.cades.merge.AbstractASiCWithCAdESContainerMerger
asicFilenameFactory
Fields inherited from class eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
asicContents, DEFAULT_DIGEST_ALGORITHM
-
Constructor Summary
ConstructorDescriptionASiCSWithCAdESContainerMerger
(ASiCContent... asicContents) This constructor is used to create an ASiC-S With CAdES from to givenASiCContent
sASiCSWithCAdESContainerMerger
(DSSDocument... containers) This constructor is used to create an ASiC-S With CAdES container merger from provided container documents -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Verifies whether containers can be mergedprotected void
This method is used to ensure that the entry names between the containers' entries are differentprotected ASiCContainerType
This method returns a target ASiC Container Type of the current merger classboolean
isSupported
(ASiCContent asicContent) This method verifies whether the providedASiCContent
is supported by the current classboolean
isSupported
(DSSDocument container) This method verifies whether the providedcontainer
is supported by the current classMethods inherited from class eu.europa.esig.dss.asic.cades.merge.AbstractASiCWithCAdESContainerMerger
getAllSignatureDocuments, getContainerExtractor, mergeCmsSignatures, setAsicFilenameFactory
Methods inherited from class eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
createEmptyContainer, createMergedResult, fromASiCContents, fromDocuments, getCreationTime, getFinalContainerName, isSupported, isSupported, merge, mergeToASiCContent, setCreationTime
-
Constructor Details
-
ASiCSWithCAdESContainerMerger
This constructor is used to create an ASiC-S With CAdES container merger from provided container documents- Parameters:
containers
-DSSDocument
s representing containers to be merged
-
ASiCSWithCAdESContainerMerger
This constructor is used to create an ASiC-S With CAdES from to givenASiCContent
s- Parameters:
asicContents
-ASiCContent
s to be merged
-
-
Method Details
-
isSupported
Description copied from class:DefaultContainerMerger
This method verifies whether the providedcontainer
is supported by the current class- Overrides:
isSupported
in classAbstractASiCWithCAdESContainerMerger
- 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- Overrides:
isSupported
in classAbstractASiCWithCAdESContainerMerger
- Parameters:
asicContent
-ASiCContent
to verify- Returns:
- TRUE if the ASIC Content is supported, FALSE otherwise
-
getTargetASiCContainerType
Description copied from class:DefaultContainerMerger
This method returns a target ASiC Container Type of the current merger class- Specified by:
getTargetASiCContainerType
in classDefaultContainerMerger
- Returns:
ASiCContainerType
-
ensureContainerContentAllowMerge
protected void ensureContainerContentAllowMerge()Description copied from class:DefaultContainerMerger
Verifies whether containers can be merged- Specified by:
ensureContainerContentAllowMerge
in classDefaultContainerMerger
-
ensureSignaturesAllowMerge
protected void ensureSignaturesAllowMerge()Description copied from class:DefaultContainerMerger
This method is used to ensure that the entry names between the containers' entries are different- Specified by:
ensureSignaturesAllowMerge
in classDefaultContainerMerger
-