public static enum NewCookie.SameSite extends java.lang.Enum<NewCookie.SameSite>
SameSite
cookie attribute.Enum Constant and Description |
---|
LAX
The
Lax mode only allows to send cookies for cross-site top level navigation requests. |
NONE
The
None mode disables protection provided by the SameSite cookie attribute. |
STRICT
The
Strict mode prevents clients from sending cookies with any cross-site request. |
Modifier and Type | Method and Description |
---|---|
static NewCookie.SameSite |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NewCookie.SameSite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewCookie.SameSite NONE
None
mode disables protection provided by the SameSite
cookie attribute.public static final NewCookie.SameSite LAX
Lax
mode only allows to send cookies for cross-site top level navigation requests.public static final NewCookie.SameSite STRICT
Strict
mode prevents clients from sending cookies with any cross-site request.public static NewCookie.SameSite[] values()
for (NewCookie.SameSite c : NewCookie.SameSite.values()) System.out.println(c);
public static NewCookie.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