public enum CookieSameSiteMode extends Enum<CookieSameSiteMode>
| Enum Constant and Description |
|---|
LAX
Same-site cookies are withheld on cross-site subrequests, such as calls to load images or frames, but will be sent
when a user navigates to the URL from an external site; for example, by following a link.
|
NONE
The browser will send cookies with both cross-site requests and same-site requests.
|
STRICT
The browser will only send cookies for same-site requests (requests originating from the site that set the cookie).
|
| Modifier and Type | Method and Description |
|---|---|
static String |
lookupModeString(String mode)
lookup from the specified value and return a correct SameSiteMode string.
|
String |
toString() |
static CookieSameSiteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CookieSameSiteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CookieSameSiteMode STRICT
public static final CookieSameSiteMode LAX
public static final CookieSameSiteMode NONE
public static CookieSameSiteMode[] values()
for (CookieSameSiteMode c : CookieSameSiteMode.values()) System.out.println(c);
public static CookieSameSiteMode 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 static String lookupModeString(String mode)
mode - null if an invalid SameSite mode is specified.public String toString()
toString in class Enum<CookieSameSiteMode>Copyright © 2021 JBoss by Red Hat. All rights reserved.