Uses of Class
org.owasp.validator.html.Policy
-
Packages that use Policy Package Description org.owasp.validator.css org.owasp.validator.html org.owasp.validator.html.scan -
-
Uses of Policy in org.owasp.validator.css
Constructors in org.owasp.validator.css with parameters of type Policy Constructor Description CssHandler(Policy policy, java.util.LinkedList embeddedStyleSheets, java.util.List<java.lang.String> errorMessages, java.lang.String tagName, java.util.ResourceBundle messages)
Constructs a handler for inline style declarations using the given policy and queue for imported stylesheets.CssHandler(Policy policy, java.util.LinkedList embeddedStyleSheets, java.util.List<java.lang.String> errorMessages, java.util.ResourceBundle messages)
Constructs a handler for stylesheets using the given policy and queue for imported stylesheets.CssValidator(Policy policy)
Constructs a validator for CSS selectors, conditions and properties based on the given policy. -
Uses of Policy in org.owasp.validator.html
Subclasses of Policy in org.owasp.validator.html Modifier and Type Class Description class
InternalPolicy
Contains a bunch of optimized lookups over the regular Policy Class.Methods in org.owasp.validator.html that return Policy Modifier and Type Method Description Policy
Policy. cloneWithDirective(java.lang.String name, java.lang.String value)
Creates a copy of this policy with an added/changed directive.static Policy
Policy. getInstance()
This retrieves a Policy based on a default location ("resources/antisamy.xml")static Policy
Policy. getInstance(java.io.File file)
This retrieves a Policy based on the File object passed instatic Policy
Policy. getInstance(java.io.InputStream inputStream)
This retrieves a Policy based on the InputStream object passed instatic Policy
Policy. getInstance(java.lang.String filename)
This retrieves a Policy based on the file name passed instatic Policy
Policy. getInstance(java.net.URL url)
This retrieves a Policy based on the URL object passed in.Methods in org.owasp.validator.html with parameters of type Policy Modifier and Type Method Description CleanResults
AntiSamy. scan(java.lang.String taintedHTML, Policy policy)
This method wrapsscan()
using the Policy object passed in.CleanResults
AntiSamy. scan(java.lang.String taintedHTML, Policy policy, int scanType)
Constructors in org.owasp.validator.html with parameters of type Policy Constructor Description AntiSamy(Policy policy)
InternalPolicy(Policy old, java.util.Map<java.lang.String,java.lang.String> directives, java.util.Map<java.lang.String,Tag> tagRules)
Policy(Policy old, java.util.Map<java.lang.String,java.lang.String> directives, java.util.Map<java.lang.String,Tag> tagRules)
-
Uses of Policy in org.owasp.validator.html.scan
Constructors in org.owasp.validator.html.scan with parameters of type Policy Constructor Description AbstractAntiSamyScanner(Policy policy)
AntiSamyDOMScanner(Policy policy)
AntiSamySAXScanner(Policy policy)
-