Enum Class OAuthTokenValidationResult.ErrorCode
java.lang.Object
java.lang.Enum<OAuthTokenValidationResult.ErrorCode>
org.apache.camel.spi.OAuthTokenValidationResult.ErrorCode
- All Implemented Interfaces:
Serializable, Comparable<OAuthTokenValidationResult.ErrorCode>, Constable
- Enclosing class:
OAuthTokenValidationResult
public static enum OAuthTokenValidationResult.ErrorCode
extends Enum<OAuthTokenValidationResult.ErrorCode>
Stable validation failure categories for rejected bearer tokens.
- Since:
- 4.21
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe token is expired.The token is inactive according to introspection.The token audience does not match the expected audience.The token issuer does not match the expected issuer.The token signature is invalid.Generic token validation failure.The token has no required expiration claim.No eligible verification key was found.The token is not valid yet.The token algorithm is not allowed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OAuthTokenValidationResult.ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_TOKEN
Generic token validation failure. -
INACTIVE_TOKEN
The token is inactive according to introspection. -
EXPIRED_TOKEN
The token is expired. -
NOT_YET_VALID
The token is not valid yet. -
MISSING_EXPIRATION
The token has no required expiration claim. -
INVALID_SIGNATURE
The token signature is invalid. -
NO_MATCHING_KEY
No eligible verification key was found. -
UNSUPPORTED_ALGORITHM
The token algorithm is not allowed. -
INVALID_ISSUER
The token issuer does not match the expected issuer. -
INVALID_AUDIENCE
The token audience does not match the expected audience.
-
-
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
-