ProtectionContext
instead.@Deprecated public enum ProtectionContext extends java.lang.Enum<ProtectionContext>
The specified rules refer to http://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet
Enum Constant and Description |
---|
HTML_HTML_CONTENT
Deprecated.
Escape HTML for use inside element content (rules #6 and - to some degree - #1),
using a policy to remove potentially malicious HTML
|
PLAIN_HTML_CONTENT
Deprecated.
Escape plain text for use inside HTML content (rule #1)
|
Modifier and Type | Method and Description |
---|---|
static ProtectionContext |
fromName(java.lang.String name)
Deprecated.
Gets a protection context from the specified name.
|
java.lang.String |
getName()
Deprecated.
Gets the name of the protection context.
|
static ProtectionContext |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ProtectionContext[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtectionContext HTML_HTML_CONTENT
public static final ProtectionContext PLAIN_HTML_CONTENT
public static ProtectionContext[] values()
for (ProtectionContext c : ProtectionContext.values()) System.out.println(c);
public static ProtectionContext valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public static ProtectionContext fromName(java.lang.String name)
name
- The name to get the protection context fromnull
if an invalid protection context
has been specifiedCopyright © 2010 - 2020 Adobe. All Rights Reserved