Package eu.europa.esig.dss.asic.common
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 TypeMethodDescriptionboolean
isSupportedASiC
(ASiCContent asicContent) Verifies whether theasicContent
is a supported ASiC container by the current implementationboolean
isSupportedASiC
(DSSDocument document) Verifies whether thedocument
is a supported ASiC container by the current implementationboolean
isSupportedZip
(ASiCContent asicContent) Verifies whether theasicContent
is a supported ZIP container by the current implementationboolean
isSupportedZip
(DSSDocument document) Verifies whether thedocument
is a supported ZIP container by the current implementation
-
Method Details
-
isSupportedZip
Verifies whether thedocument
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
Verifies whether thedocument
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
Verifies whether theasicContent
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
Verifies whether theasicContent
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
-