Package eu.europa.esig.dss.asic.xades
Class OpenDocumentSupportUtils
java.lang.Object
eu.europa.esig.dss.asic.xades.OpenDocumentSupportUtils
Contains utils for OpenDocument processing
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<DSSDocument> getOpenDocumentCoverage(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(DSSDocument document) Verifies whether the document is located within "external-data/" folder within the archive
-
Method Details
-
getOpenDocumentCoverage
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
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
-