Interface ASiCContainerMergerFactory

All Known Implementing Classes:
ASiCWithCAdESContainerMergerFactory, ASiCWithXAdESContainerMergerFactory

public interface ASiCContainerMergerFactory
This class is used to load relevant eu.europa.esig.dss.asic.common.merge.ASiCContainerMerger for given eu.europa.esig.dss.model.DSSDocument containers or eu.europa.esig.dss.asic.common.ASiCContents
  • Method Summary

    Modifier and Type
    Method
    Description
    create(ASiCContent... asicContents)
    Creates a new ASiCContainerMerger for the given ASiCContents
    create(DSSDocument... containers)
    Creates a new ASiCContainerMerger for the given ZIP-archive containers
    boolean
    isSupported(ASiCContent... asicContents)
    Returns whether the format of given containers is supported by the current ASiCContainerMerger
    boolean
    isSupported(DSSDocument... containers)
    Returns whether the format of given containers is supported by the current ASiCContainerMerger
  • Method Details

    • isSupported

      boolean isSupported(DSSDocument... containers)
      Returns whether the format of given containers is supported by the current ASiCContainerMerger
      Parameters:
      containers - DSSDocuments to be merged
      Returns:
      TRUE if both documents are supported by the current container, FALSE otherwise
    • create

      ASiCContainerMerger create(DSSDocument... containers)
      Creates a new ASiCContainerMerger for the given ZIP-archive containers
      Parameters:
      containers - DSSDocuments representing ZIP-containers to be merged
      Returns:
      DSSDocument representing a merge result of given ZIP-containers
    • isSupported

      boolean isSupported(ASiCContent... asicContents)
      Returns whether the format of given containers is supported by the current ASiCContainerMerger
      Parameters:
      asicContents - ASiCContents to be merged
      Returns:
      TRUE if both containers are supported by the current container, FALSE otherwise
    • create

      ASiCContainerMerger create(ASiCContent... asicContents)
      Creates a new ASiCContainerMerger for the given ASiCContents
      Parameters:
      asicContents - ASiCContents representing content of ZIP-containers to be merged
      Returns:
      ASiCContent representing a merge result