Class AbstractASiCContainerExtractor

java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCContainerExtractor
Direct Known Subclasses:
ASiCWithCAdESContainerExtractor, ASiCWithXAdESContainerExtractor

public abstract class AbstractASiCContainerExtractor extends Object
This class is used to read an ASiC Container and to retrieve its content files
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    The default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Extracts a content (documents) embedded into the asicContainer
    protected abstract boolean
    Checks if the given String file name represents an allowed archive manifest name for the current ASiC container format
    protected abstract boolean
    Checks if the given String file name represents an allowed manifest name for the current ASiC container format
    protected abstract boolean
    Checks if the given String file name represents an allowed signature document name for the current ASiC container format
    protected abstract boolean
    Checks if the given String file name represents an allowed timestamp document name for the current ASiC container format

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractASiCContainerExtractor

      protected AbstractASiCContainerExtractor(DSSDocument asicContainer)
      The default constructor
      Parameters:
      asicContainer - DSSDocument representing an ASiC container to extract entries from
  • Method Details

    • extract

      public ASiCContent extract()
      Extracts a content (documents) embedded into the asicContainer
      Returns:
      ASiCContent
    • isAllowedManifest

      protected abstract boolean isAllowedManifest(String entryName)
      Checks if the given String file name represents an allowed manifest name for the current ASiC container format
      Parameters:
      entryName - String document name to check
      Returns:
      TRUE if the name represents an allowed manifest document name, FALSE otherwise
    • isAllowedArchiveManifest

      protected abstract boolean isAllowedArchiveManifest(String entryName)
      Checks if the given String file name represents an allowed archive manifest name for the current ASiC container format
      Parameters:
      entryName - String document name to check
      Returns:
      TRUE if the name represents an allowed archive manifest document name, FALSE otherwise
    • isAllowedTimestamp

      protected abstract boolean isAllowedTimestamp(String entryName)
      Checks if the given String file name represents an allowed timestamp document name for the current ASiC container format
      Parameters:
      entryName - String document name to check
      Returns:
      TRUE if the name represents an allowed timestamp document name, FALSE otherwise
    • isAllowedSignature

      protected abstract boolean isAllowedSignature(String entryName)
      Checks if the given String file name represents an allowed signature document name for the current ASiC container format
      Parameters:
      entryName - String document name to check
      Returns:
      TRUE if the name represents an allowed signature document name, FALSE otherwise