Enum Class Authenticated.AdminOverrideOption

java.lang.Object
java.lang.Enum<Authenticated.AdminOverrideOption>
org.veupathdb.lib.container.jaxrs.server.annotations.Authenticated.AdminOverrideOption
All Implemented Interfaces:
Serializable, Comparable<Authenticated.AdminOverrideOption>, Constable
Enclosing class:
Authenticated

public static enum Authenticated.AdminOverrideOption extends Enum<Authenticated.AdminOverrideOption>
  • Enum Constant Details

    • DISALLOW

      public static final Authenticated.AdminOverrideOption DISALLOW
      (default if missing) admin is irrelevant
    • ALLOW_WITH_USER

      public static final Authenticated.AdminOverrideOption ALLOW_WITH_USER
      allow access only if admin token is present and valid and proxied-user-id header/query-param is present
    • ALLOW_ALWAYS

      public static final Authenticated.AdminOverrideOption ALLOW_ALWAYS
      allow access only if admin token is present; proxied user discovery will be attempted via proxied-user-id header/query-param but resource will be visited with an empty user if missing
  • Method Details

    • values

      public static Authenticated.AdminOverrideOption[] 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 Authenticated.AdminOverrideOption 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