| Package | Description |
|---|---|
| org.owasp.validator.html | |
| org.owasp.validator.html.scan |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static Policy.ParseContext |
Policy.getParseContext(Element topLevelElement,
URL baseUrl) |
protected static Policy.ParseContext |
Policy.getSimpleParseContext(Element topLevelElement) |
protected static Element |
Policy.getTopLevelElement(InputSource source) |
protected static Element |
Policy.getTopLevelElement(URL baseUrl) |
CleanResults |
AntiSamy.scan(String taintedHTML)
The meat and potatoes.
|
CleanResults |
AntiSamy.scan(String taintedHTML,
File policyFile)
This method wraps
scan() using the policy File object passed
in. |
CleanResults |
AntiSamy.scan(String taintedHTML,
int scanType) |
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) |
CleanResults |
AntiSamy.scan(String taintedHTML,
String filename)
This method wraps
scan() using the Policy object passed in. |
| Constructor and Description |
|---|
InternalPolicy(URL baseUrl,
Policy.ParseContext parseContext) |
Policy(Policy.ParseContext parseContext) |
| Modifier and Type | Method and Description |
|---|---|
static void |
AntiSamyDOMScanner.main(String[] args) |
| Constructor and Description |
|---|
AbstractAntiSamyScanner() |
AntiSamyDOMScanner() |
Copyright © 2013 The Open Web Application Security Project (OWASP). All rights reserved.