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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionallow 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 missingallow access only if admin token is present and valid and proxied-user-id header/query-param is present(default if missing) admin is irrelevant -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static Authenticated.AdminOverrideOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISALLOW
(default if missing) admin is irrelevant -
ALLOW_WITH_USER
allow access only if admin token is present and valid and proxied-user-id header/query-param is present -
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
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
-