public static enum Csrf.CsrfOptions extends Enum<Csrf.CsrfOptions>
Csrf.CSRF_PROTECTION
.Enum Constant and Description |
---|
EXPLICIT
Enabling CSRF requires use of
CsrfValid explicitly. |
IMPLICIT
CSRF enabled automatically.
|
OFF
CSRF protection not enabled.
|
Modifier and Type | Method and Description |
---|---|
static Csrf.CsrfOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Csrf.CsrfOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Csrf.CsrfOptions OFF
public static final Csrf.CsrfOptions EXPLICIT
CsrfValid
explicitly.public static final Csrf.CsrfOptions IMPLICIT
public static Csrf.CsrfOptions[] values()
for (Csrf.CsrfOptions c : Csrf.CsrfOptions.values()) System.out.println(c);
public static Csrf.CsrfOptions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 Oracle Corporation. All rights reserved.