Enum SameSiteCookieHeaderFilter.SameSiteValue
java.lang.Object
java.lang.Enum<SameSiteCookieHeaderFilter.SameSiteValue>
net.shibboleth.utilities.java.support.net.SameSiteCookieHeaderFilter.SameSiteValue
- All Implemented Interfaces:
Serializable
,Comparable<SameSiteCookieHeaderFilter.SameSiteValue>
- Enclosing class:
- SameSiteCookieHeaderFilter
public static enum SameSiteCookieHeaderFilter.SameSiteValue extends Enum<SameSiteCookieHeaderFilter.SameSiteValue>
The allowed same-site cookie attribute values.
-
Enum Constant Summary
Enum Constants Enum Constant Description Lax
Send the cookie for 'same-site' requests along with 'cross-site' top level navigations using safe HTTP methods (GET, HEAD, OPTIONS, and TRACE).None
Send the cookie for 'same-site' and 'cross-site' requests.Null
Specify nothing.Strict
Send the cookie for 'same-site' requests only. -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
SameSiteValue(String attrValue)
Constructor. -
Method Summary
Modifier and Type Method Description String
getValue()
Get the same-site attribute value.static SameSiteCookieHeaderFilter.SameSiteValue
valueOf(String name)
Returns the enum constant of this type with the specified name.static SameSiteCookieHeaderFilter.SameSiteValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Strict
Send the cookie for 'same-site' requests only. -
Lax
Send the cookie for 'same-site' requests along with 'cross-site' top level navigations using safe HTTP methods (GET, HEAD, OPTIONS, and TRACE). -
None
Send the cookie for 'same-site' and 'cross-site' requests. -
Null
Specify nothing.
-
-
Field Details
-
value
The same-site attribute value.
-
-
Constructor Details
-
SameSiteValue
Constructor.- Parameters:
attrValue
- the same-site attribute value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Get the same-site attribute value.- Returns:
- Returns the value.
-