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 classInternalPolicyContains a bunch of optimized lookups over the regular Policy Class.Methods in org.owasp.validator.html that return Policy Modifier and Type Method Description PolicyPolicy. cloneWithDirective(java.lang.String name, java.lang.String value)Creates a copy of this policy with an added/changed directive.static PolicyPolicy. getInstance()This retrieves a Policy based on a default location ("resources/antisamy.xml")static PolicyPolicy. getInstance(java.io.File file)This retrieves a Policy based on the File object passed instatic PolicyPolicy. getInstance(java.io.InputStream inputStream)This retrieves a Policy based on the InputStream object passed instatic PolicyPolicy. getInstance(java.lang.String filename)This retrieves a Policy based on the file name passed instatic PolicyPolicy. 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 CleanResultsAntiSamy. scan(java.lang.String taintedHTML, Policy policy)This method wrapsscan()using the Policy object passed in.CleanResultsAntiSamy. 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)
-