public enum SameSiteCookies extends Enum<SameSiteCookies>
Enum Constant and Description |
---|
LAX
Cookie is only sent on same-site requests and cross-site top level navigation GET requests
|
NONE
Cookie is always sent in cross-site requests.
|
STRICT
Prevents the cookie from being sent by the browser in all cross-site requests
|
UNSET
Don't set the SameSite cookie attribute.
|
Modifier and Type | Method and Description |
---|---|
static SameSiteCookies |
fromString(String value) |
String |
getValue() |
static SameSiteCookies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SameSiteCookies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SameSiteCookies UNSET
public static final SameSiteCookies NONE
public static final SameSiteCookies LAX
public static final SameSiteCookies STRICT
public static SameSiteCookies[] values()
for (SameSiteCookies c : SameSiteCookies.values()) System.out.println(c);
public static SameSiteCookies 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 nullpublic String getValue()
public static SameSiteCookies fromString(String value)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.