- getName() - Method in enum org.apache.sling.xss.ProtectionContext
-
Gets the name of the protection context.
- getValidCSSColor(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a CSS color value.
- getValidDimension(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain a dimension, returning a default value if the source is
empty, can't be parsed, or contains XSS risks.
- getValidDouble(String, double) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain an double, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidHref(String) - Method in interface org.apache.sling.xss.XSSAPI
-
Sanitizes a URL for writing as an HTML href or src attribute value.
- getValidInteger(String, int) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain an integer, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidJSON(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a JSON string
- getValidJSToken(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a Javascript token.
- getValidLong(String, long) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain a long, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidMultiLineComment(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate multi-line comment to be used inside a <script>...</script> or <style>...</style> block.
- getValidStyleToken(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a style/CSS token.
- getValidXML(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate an XML string