XSSFilter instead.@Deprecated public interface XSSFilter
| Modifier and Type | Field and Description |
|---|---|
static ProtectionContext |
DEFAULT_CONTEXT
Deprecated.
Default context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(ProtectionContext context,
String src)
Deprecated.
Indicates whether or not a given source string contains XSS policy violations.
|
boolean |
check(ProtectionContext context,
String src,
String policy)
Deprecated.
Indicates whether or not a given source string contains XSS policy violations.
|
String |
filter(ProtectionContext context,
String src)
Deprecated.
Protects the given source string from containing XSS stuff.
|
String |
filter(ProtectionContext context,
String src,
String policy)
Deprecated.
Protects the given source string from containing XSS stuff.
|
String |
filter(String src)
Deprecated.
Prevents the given source string from containing XSS stuff.
|
static final ProtectionContext DEFAULT_CONTEXT
boolean check(ProtectionContext context, String src)
context - context to use for checkingsrc - source stringNullPointerException - if context is nullboolean check(ProtectionContext context, String src, String policy)
context - context to use for checkingsrc - source stringpolicy - the name/path of the policy to useNullPointerException - if context is nullString filter(String src)
src - source stringString filter(ProtectionContext context, String src)
context - context to use for checkingsrc - source stringNullPointerException - if context is nullString filter(ProtectionContext context, String src, String policy)
null the default context is used.context - context to use for checkingsrc - source stringpolicy - the name/path of the policy to useNullPointerException - if context is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved