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 AbstractASiCContainerExtractor​(DSSDocument asicContainer)
    The default constructor
  • Method Summary

    Modifier and Type Method Description
    ASiCExtractResult extract()
    Extracts a content (documents) embedded into the asicContainer
    String getZipComment()
    Returns a zip comment String from the ASiC container
    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
    protected abstract boolean isAllowedManifest​(String entryName)
    Checks if the given String file name represents an allowed manifest name for the current ASiC container format
    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
    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

    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 ASiCExtractResult extract()
      Extracts a content (documents) embedded into the asicContainer
      Returns:
      ASiCExtractResult
    • getZipComment

      public String getZipComment()
      Returns a zip comment String from the ASiC container
      Returns:
      String zip comment
    • 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