Package | Description |
---|---|
org.owasp.validator.css | |
org.owasp.validator.html | |
org.owasp.validator.html.scan |
Constructor and Description |
---|
CssHandler(Policy policy,
LinkedList embeddedStyleSheets,
List<String> errorMessages,
ResourceBundle messages)
Constructs a handler for stylesheets using the given policy and queue for
imported stylesheets.
|
CssHandler(Policy policy,
LinkedList embeddedStyleSheets,
List<String> errorMessages,
String tagName,
ResourceBundle messages)
Constructs a handler for inline style declarations 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.
|
Modifier and Type | Class and Description |
---|---|
class |
InternalPolicy
Contains a bunch of optimized lookups over the regular Policy Class.
|
Modifier and Type | Method and Description |
---|---|
Policy |
Policy.cloneWithDirective(String name,
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(File file)
This retrieves a Policy based on the File object passed in
|
static Policy |
Policy.getInstance(InputStream inputStream)
This retrieves a Policy based on the InputStream object passed in
|
static Policy |
Policy.getInstance(String filename)
This retrieves a Policy based on the file name passed in
|
static Policy |
Policy.getInstance(URL url)
This retrieves a Policy based on the URL object passed in.
|
Modifier and Type | Method and Description |
---|---|
CleanResults |
AntiSamy.scan(String taintedHTML,
Policy policy)
This method wraps
scan() using the Policy object passed in. |
CleanResults |
AntiSamy.scan(String taintedHTML,
Policy policy,
int scanType) |
Constructor and Description |
---|
AntiSamy(Policy policy) |
InternalPolicy(Policy old,
Map<String,String> directives,
Map<String,Tag> tagRules) |
Policy(Policy old,
Map<String,String> directives,
Map<String,Tag> tagRules) |
Constructor and Description |
---|
AbstractAntiSamyScanner(Policy policy) |
AntiSamyDOMScanner(Policy policy) |
AntiSamySAXScanner(Policy policy) |
Copyright © 2019. All rights reserved.