Enum Class SetCookie.SameSite

java.lang.Object
java.lang.Enum<SetCookie.SameSite>
com.jsgalactic.axiom.security.SetCookie.SameSite
All Implemented Interfaces:
Serializable, Comparable<SetCookie.SameSite>, Constable
Enclosing class:
SetCookie

public static enum SetCookie.SameSite extends Enum<SetCookie.SameSite>
The SameSite attribute.
  • Enum Constant Details

    • STRICT

      public static final SetCookie.SameSite STRICT
      Sent only on same-site requests.
    • LAX

      public static final SetCookie.SameSite LAX
      Also sent on top-level cross-site navigations with a safe method.
    • NONE

      public static final SetCookie.SameSite NONE
      Sent on all requests; requires Secure.
  • Method Details

    • values

      public static SetCookie.SameSite[] 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

      public static SetCookie.SameSite valueOf(String name)
      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 name
      NullPointerException - if the argument is null