Class ASiCSWithXAdESContainerMerger
java.lang.Object
eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
eu.europa.esig.dss.asic.xades.merge.AbstractASiCWithXAdESContainerMerger
eu.europa.esig.dss.asic.xades.merge.ASiCSWithXAdESContainerMerger
- All Implemented Interfaces:
ASiCContainerMerger
This class is used to merge ASiC-S with XAdES containers.
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.xades.merge.AbstractASiCWithXAdESContainerMerger
asicFilenameFactory
Fields inherited from class eu.europa.esig.dss.asic.common.merge.DefaultContainerMerger
asicContents, DEFAULT_DIGEST_ALGORITHM
-
Constructor Summary
ConstructorDescriptionASiCSWithXAdESContainerMerger
(ASiCContent... asicContents) This constructor is used to create an ASiC-S With XAdES from to givenASiCContent
sASiCSWithXAdESContainerMerger
(DSSDocument... containers) This constructor is used to create an ASiC-S With XAdES 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 classprotected 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 classMethods inherited from class eu.europa.esig.dss.asic.xades.merge.AbstractASiCWithXAdESContainerMerger
getContainerExtractor, 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
-
ASiCSWithXAdESContainerMerger
This constructor is used to create an ASiC-S With XAdES container merger from provided container documents- Parameters:
containers
-DSSDocument
s representing containers to be merged
-
ASiCSWithXAdESContainerMerger
This constructor is used to create an ASiC-S With XAdES 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 classAbstractASiCWithXAdESContainerMerger
- 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 classAbstractASiCWithXAdESContainerMerger
- 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
-