public static enum Cookie.SameSite extends java.lang.Enum<Cookie.SameSite>
Enum Constant and Description |
---|
LAX
Default.
|
NONE
if none, then
Cookie.secure() must be set |
STRICT
sent from origin site only
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static Cookie.SameSite |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cookie.SameSite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cookie.SameSite STRICT
public static final Cookie.SameSite LAX
public static final Cookie.SameSite NONE
Cookie.secure()
must be setpublic static Cookie.SameSite[] values()
for (Cookie.SameSite c : Cookie.SameSite.values()) System.out.println(c);
public static Cookie.SameSite 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 null