Uses of Class
org.owasp.validator.html.Policy
Packages that use Policy
Package
Description
This package contains implementation classes to handle the sanitization of Cascading Style Sheets (CSS)
and should not be directly used by clients.
This package contains classes to handle the sanitization of HTML markup.
This package contains implementation classes used by AntiSamy and should not be directly used by clients.
-
Uses of Policy in org.owasp.validator.css
Constructors in org.owasp.validator.css with parameters of type PolicyModifierConstructorDescriptionCssHandler(Policy policy, List<String> errorMessages, ResourceBundle messages) Constructs a handler for stylesheets using the given policy.CssHandler(Policy policy, List<String> errorMessages, ResourceBundle messages, String tagName) Constructs a handler for stylesheets using the given policy.CssValidator(Policy policy) Constructs a validator for CSS selectors, conditions, and properties based on the given AntiSamy policy. -
Uses of Policy in org.owasp.validator.html
Subclasses of Policy in org.owasp.validator.htmlModifier and TypeClassDescriptionclassContains a bunch of optimized lookups over the regular Policy Class.Methods in org.owasp.validator.html that return PolicyModifier and TypeMethodDescriptionPolicy.cloneWithDirective(String name, String value) Creates a copy of this policy with an added/changed directive.static PolicyPolicy.getInstance()Construct a Policy using the default policy file location ("antisamy.xml").static PolicyPolicy.getInstance(File file) Construct a Policy from the File object passed in.static PolicyPolicy.getInstance(InputStream inputStream) Construct a Policy from the InputStream object passed in.static PolicyPolicy.getInstance(String filename) Construct a Policy based on the file whose name is passed in.static PolicyPolicy.getInstance(URL url) Construct a Policy from the target of the URL passed in.Methods in org.owasp.validator.html with parameters of type PolicyModifier and TypeMethodDescriptionUse this method if caller has Streams rather than Strings for I/O.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy using the DOM parser.This method scans the supplied HTML input and produces clean/sanitized results per the supplied AntiSamy policy using the specified DOM or SAX parser.Constructors in org.owasp.validator.html with parameters of type Policy -
Uses of Policy in org.owasp.validator.html.scan
Methods in org.owasp.validator.html.scan with parameters of type PolicyModifier and TypeMethodDescriptionThis is where the magic lives.Constructors in org.owasp.validator.html.scan with parameters of type PolicyModifierConstructorDescriptionAbstractAntiSamyScanner(Policy policy) Construct an AntiSamy Scanner instance that uses the specified AntiSamy policy.AntiSamyDOMScanner(Policy policy) Create an instance of this class configured to use the specified policy.AntiSamySAXScanner(Policy policy) Create an instance of this class configured to use the specified policy.