Enum Class HttpCookie.SameSite
- All Implemented Interfaces:
Serializable, Comparable<HttpCookie.SameSite>, Constable
- Enclosing interface:
HttpCookie
The possible values for the SameSite attribute, defined
in the follow-up of RFC 6265, at the time of this writing defined at
RFC 6265bis.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCookie.SameSitestatic HttpCookie.SameSiteReturns the enum constant of this class with the specified name.static HttpCookie.SameSite[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The valueNonefor theSameSiteattribute -
STRICT
The valueStrictfor theSameSiteattribute -
LAX
The valueLaxfor theSameSiteattribute
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getAttributeValue
- Returns:
- the
SameSiteattribute value
-
from
- Parameters:
sameSite- theSameSiteattribute value- Returns:
- the enum constant associated with the
SameSiteattribute value, ornullif the value is not a knownSameSiteattribute value
-