Package io.strimzi.kafka.oauth.validator
Enum TokenValidationException.Status
java.lang.Object
java.lang.Enum<TokenValidationException.Status>
io.strimzi.kafka.oauth.validator.TokenValidationException.Status
- All Implemented Interfaces:
Serializable,Comparable<TokenValidationException.Status>
- Enclosing class:
- TokenValidationException
An Enum for different token validation error statuses
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionToken is expiredToken is invalidToken is rejected based on the token type -
Method Summary
Modifier and TypeMethodDescriptionvalue()Get enum value as a lowercase StringReturns the enum constant of this type with the specified name.static TokenValidationException.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INVALID_TOKEN
Token is invalid -
EXPIRED_TOKEN
Token is expired -
UNSUPPORTED_TOKEN_TYPE
Token is rejected based on the token type
-
-
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
-
value
Get enum value as a lowercase String- Returns:
- a lowercase string
-