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,
java.lang.String src)
Deprecated.
Indicates whether or not a given source string contains XSS policy violations.
|
boolean |
check(ProtectionContext context,
java.lang.String src,
java.lang.String policy)
Deprecated.
Indicates whether or not a given source string contains XSS policy violations.
|
java.lang.String |
filter(ProtectionContext context,
java.lang.String src)
Deprecated.
Protects the given source string from containing XSS stuff.
|
java.lang.String |
filter(ProtectionContext context,
java.lang.String src,
java.lang.String policy)
Deprecated.
Protects the given source string from containing XSS stuff.
|
java.lang.String |
filter(java.lang.String src)
Deprecated.
Prevents the given source string from containing XSS stuff.
|
static final ProtectionContext DEFAULT_CONTEXT
boolean check(ProtectionContext context, java.lang.String src)
context
- context to use for checkingsrc
- source stringjava.lang.NullPointerException
- if context is null
boolean check(ProtectionContext context, java.lang.String src, java.lang.String policy)
context
- context to use for checkingsrc
- source stringpolicy
- the name/path of the policy to usejava.lang.NullPointerException
- if context is null
java.lang.String filter(java.lang.String src)
src
- source stringjava.lang.String filter(ProtectionContext context, java.lang.String src)
context
- context to use for checkingsrc
- source stringjava.lang.NullPointerException
- if context is null
java.lang.String filter(ProtectionContext context, java.lang.String src, java.lang.String policy)
null
the default context is used.context
- context to use for checkingsrc
- source stringpolicy
- the name/path of the policy to usejava.lang.NullPointerException
- if context is null
Copyright © 2010 - 2020 Adobe. All Rights Reserved