| Enum Constant and Description |
|---|
LAX_MODE
The cookie can be sent with top-level navigations from a third-party site to the web site
with the domain matching the cookie.
|
NONE
The cookie can be sent in a third-party context.
|
STRICT_MODE
The cookie can only be sent in a first-party context, when the cookie matches the domain of
the current site.
|
| Modifier and Type | Method and Description |
|---|---|
static SameSite |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SameSite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SameSite STRICT_MODE
public static final SameSite LAX_MODE
public static final SameSite NONE
public static SameSite[] values()
for (SameSite c : SameSite.values()) System.out.println(c);
public static 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