Class OpenDocumentSupportUtils
java.lang.Object
eu.europa.esig.dss.asic.xades.OpenDocumentSupportUtils
Contains utils for OpenDocument processing
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<eu.europa.esig.dss.model.DSSDocument> getOpenDocumentCoverage(eu.europa.esig.dss.asic.common.ASiCContent asicContent) ODF 1.2 ch 3.16 An OpenDocument document that is stored in a package may have one or more digital signatures applied to the package.static booleanisExternalDataDocument(eu.europa.esig.dss.model.DSSDocument document) Verifies whether the document is located within "external-data/" folder within the archive
-
Method Details
-
getOpenDocumentCoverage
public static List<eu.europa.esig.dss.model.DSSDocument> getOpenDocumentCoverage(eu.europa.esig.dss.asic.common.ASiCContent asicContent) ODF 1.2 ch 3.16 An OpenDocument document that is stored in a package may have one or more digital signatures applied to the package. Document signatures shall be stored in a file called META-INF/documentsignatures.xml in the package as described in section 3.5 of the OpenDocument specification part 3. Document signatures shall contain a<ds:Reference>element for each file within the package, with the exception that<ds:Reference>elements for the META-INF/documentsignatures.xml file containing the signature, and any files contained in the package whose relative path starts with "external-data/" should be omitted.- Parameters:
asicContent-ASiCContent- Returns:
- the list of covered documents
-
isExternalDataDocument
public static boolean isExternalDataDocument(eu.europa.esig.dss.model.DSSDocument document) Verifies whether the document is located within "external-data/" folder within the archive- Parameters:
document-DSSDocumentto check- Returns:
- TRUE if the document is within the "external-data/" folder, FALSE otherwise
-