Interface ASiCFormatDetector

All Known Implementing Classes:
ASiCWithCAdESFormatDetector, ASiCWithXAdESFormatDetector

public interface ASiCFormatDetector
This interface contains method for verification of a document on a conformance to a ZIP or ASiC format NOTE: sometimes it is required to accept simple ZIP archive, but reject ASiC container of a different implementation (i.e. XAdES vs CAdES), that is why we implement two methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Verifies whether the asicContent is a supported ASiC container by the current implementation
    boolean
    Verifies whether the document is a supported ASiC container by the current implementation
    boolean
    Verifies whether the asicContent is a supported ZIP container by the current implementation
    boolean
    Verifies whether the document is a supported ZIP container by the current implementation
  • Method Details

    • isSupportedZip

      boolean isSupportedZip(DSSDocument document)
      Verifies whether the document is a supported ZIP container by the current implementation
      Parameters:
      document - DSSDocument to be analyzed
      Returns:
      TRUE if the document is a supported ZIP container, FALSE otherwise
    • isSupportedASiC

      boolean isSupportedASiC(DSSDocument document)
      Verifies whether the document is a supported ASiC container by the current implementation
      Parameters:
      document - DSSDocument to be analyzed
      Returns:
      TRUE if the document is a supported ASiC container, FALSE otherwise
    • isSupportedZip

      boolean isSupportedZip(ASiCContent asicContent)
      Verifies whether the asicContent is a supported ZIP container by the current implementation
      Parameters:
      asicContent - ASiCContent to be analyzed
      Returns:
      TRUE if the ASiCContent is a supported ZIP container, FALSE otherwise
    • isSupportedASiC

      boolean isSupportedASiC(ASiCContent asicContent)
      Verifies whether the asicContent is a supported ASiC container by the current implementation
      Parameters:
      asicContent - ASiCContent to be analyzed
      Returns:
      TRUE if the ASiCContent is a supported ASiC container, FALSE otherwise