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 TypeMethodDescriptionbooleanisSupportedASiC(ASiCContent asicContent) Verifies whether theasicContentis a supported ASiC container by the current implementationbooleanisSupportedASiC(DSSDocument document) Verifies whether thedocumentis a supported ASiC container by the current implementationbooleanisSupportedZip(ASiCContent asicContent) Verifies whether theasicContentis a supported ZIP container by the current implementationbooleanisSupportedZip(DSSDocument document) Verifies whether thedocumentis a supported ZIP container by the current implementation
-
Method Details
-
isSupportedZip
Verifies whether thedocumentis a supported ZIP container by the current implementation- Parameters:
document-DSSDocumentto be analyzed- Returns:
- TRUE if the document is a supported ZIP container, FALSE otherwise
-
isSupportedASiC
Verifies whether thedocumentis a supported ASiC container by the current implementation- Parameters:
document-DSSDocumentto be analyzed- Returns:
- TRUE if the document is a supported ASiC container, FALSE otherwise
-
isSupportedZip
Verifies whether theasicContentis a supported ZIP container by the current implementation- Parameters:
asicContent-ASiCContentto be analyzed- Returns:
- TRUE if the ASiCContent is a supported ZIP container, FALSE otherwise
-
isSupportedASiC
Verifies whether theasicContentis a supported ASiC container by the current implementation- Parameters:
asicContent-ASiCContentto be analyzed- Returns:
- TRUE if the ASiCContent is a supported ASiC container, FALSE otherwise
-