| Modifier and Type | Field and Description |
|---|---|
| private final String | label
Just use a human friendly label instead of the capitalized name. |
| public static final CookieSameSiteMode | 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. |
| public static final CookieSameSiteMode | NONE
The browser will send cookies with both cross-site requests and same-site requests. |
| private static final CookieSameSiteMode[] | |
| public static final CookieSameSiteMode | STRICT
The browser will only send cookies for same-site requests (requests originating from the site that set the cookie). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: A name of SameSite mode. Returnsnull if an invalid SameSite mode is specified.lookup from the specified value and return a correct SameSiteMode string. |
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static CookieSameSiteMode | |
| public static CookieSameSiteMode[] |
| label | back to summary |
|---|---|
| private final String label Just use a human friendly label instead of the capitalized name. | |
| LAX | back to summary |
|---|---|
| public static final CookieSameSiteMode 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 | back to summary |
|---|---|
| public static final CookieSameSiteMode NONE The browser will send cookies with both cross-site requests and same-site requests. | |
| SAMESITE_MODES | back to summary |
|---|---|
| private static final CookieSameSiteMode[] SAMESITE_MODES | |
| STRICT | back to summary |
|---|---|
| public static final CookieSameSiteMode STRICT The browser will only send cookies for same-site requests (requests originating from the site that set the cookie). If the request originated from a different URL than the URL of the current location, none of the cookies tagged with the Strict attribute will be included. | |
| CookieSameSiteMode | back to summary |
|---|---|
| private CookieSameSiteMode(String label) | |
| lookupModeString | back to summary |
|---|---|
| public static String lookupModeString(String mode) lookup from the specified value and return a correct SameSiteMode string.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static CookieSameSiteMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CookieSameSiteMode[] values() | |