public static enum Cookie.SameSite extends java.lang.Enum<Cookie.SameSite>
Enum Constant and Description |
---|
LAX
Cookies are sent in a first-party context, also when following a link to the
origin site.
|
NONE
Cookies are sent in both first-party and cross-origin requests.
|
STRICT
Cookies are only sent in a first-party context (i.e.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
attributeValue() |
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 NONE
public static final Cookie.SameSite LAX
public static final Cookie.SameSite STRICT
public 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 nullpublic java.lang.String attributeValue()