Package com.adobe.granite.xss
Interface XSSFilter
Deprecated.
This service should be used to protect output against potential XSS attacks.
The protection is context based.
- Since:
- 1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(ProtectionContext context, String src) Deprecated.Indicates whether or not a given source string contains XSS policy violations.booleancheck(ProtectionContext context, String src, String policy) Deprecated.Indicates whether or not a given source string contains XSS policy violations.filter(ProtectionContext context, String src) Deprecated.Protects the given source string from containing XSS stuff.filter(ProtectionContext context, String src, String policy) Deprecated.Protects the given source string from containing XSS stuff.Deprecated.Prevents the given source string from containing XSS stuff.
-
Field Details
-
DEFAULT_CONTEXT
Deprecated.Default context.
-
-
Method Details
-
check
Deprecated.Indicates whether or not a given source string contains XSS policy violations.- Parameters:
context- context to use for checkingsrc- source string- Returns:
- true if the source is violation-free
- Throws:
NullPointerException- if context isnull
-
check
Deprecated.Indicates whether or not a given source string contains XSS policy violations.- Parameters:
context- context to use for checkingsrc- source stringpolicy- the name/path of the policy to use- Returns:
- true if the source is violation-free
- Throws:
NullPointerException- if context isnull
-
filter
Deprecated.Prevents the given source string from containing XSS stuff. The default protection context is used for checking.- Parameters:
src- source string- Returns:
- string that does not contain XSS stuff
-
filter
Deprecated.Protects the given source string from containing XSS stuff.- Parameters:
context- context to use for checkingsrc- source string- Returns:
- string that does not contain XSS stuff
- Throws:
NullPointerException- if context isnull
-
filter
Deprecated.Protects the given source string from containing XSS stuff. If the context is unknown ornullthe default context is used.- Parameters:
context- context to use for checkingsrc- source stringpolicy- the name/path of the policy to use- Returns:
- string that does not contain XSS stuff
- Throws:
NullPointerException- if context isnull
-
XSSFilterinstead.