Class XslSecurityService
java.lang.Object
fr.paris.lutece.portal.service.xsl.XslSecurityService
Service for validating XSL files against security threats.
Detects dangerous constructs such as extension namespaces, script elements,
document() calls, and xsl:result-document before the stylesheet reaches
the XSLT processor.
-
Method Summary
Modifier and TypeMethodDescriptionvalidateXslSecurity(byte[] baXslSource) Validates an XSL stylesheet for security threats.
-
Method Details
-
validateXslSecurity
Validates an XSL stylesheet for security threats.- Parameters:
baXslSource- the XSL source as a byte array- Returns:
- a list of security violations found, empty if the stylesheet is safe
-