public static enum Csrf.CsrfOptions extends Enum<Csrf.CsrfOptions>
Csrf.CSRF_PROTECTION.| Enum Constant and Description |
|---|
EXPLICIT
Enabling CSRF requires use of
CsrfProtected explicitly (default). |
IMPLICIT
CSRF enabled automatically for all controllers.
|
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
CsrfProtected explicitly (default).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 © 2018 Ivar Grimstad. All rights reserved.