Enum Class AccessTokenValidationException.Reason
java.lang.Object
java.lang.Enum<AccessTokenValidationException.Reason>
com.revetsec.oauth.AccessTokenValidationException.Reason
- All Implemented Interfaces:
Serializable, Comparable<AccessTokenValidationException.Reason>, Constable
- Enclosing class:
AccessTokenValidationException
@Immutable
public static enum AccessTokenValidationException.Reason
extends Enum<AccessTokenValidationException.Reason>
The failed credential check. Later releases may add values; switches need a default branch.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe access token audience does not match.The access token has no required audience.The access token requires proof of key possession.The access token has expired.The access token is inactive.An access token claim is invalid.The access token was issued in the future.The access token issuer does not match.The access token failed JWT validation.The bearer credential presentation is malformed.The access token is not yet valid.A required access token claim is missing.The access token scope is invalid.The access token type is invalid.An untyped access token contains an identity-token claim. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MALFORMED_REQUEST
The bearer credential presentation is malformed. -
JWT_REJECTED
The access token failed JWT validation. -
INVALID_CLAIM
An access token claim is invalid. -
REQUIRED_CLAIM_MISSING
A required access token claim is missing. -
UNTYPED_IDENTITY_CLAIM_PRESENT
An untyped access token contains an identity-token claim. -
INACTIVE
The access token is inactive. -
ISSUER_MISMATCH
The access token issuer does not match. -
AUDIENCE_MISSING
The access token has no required audience. -
AUDIENCE_MISMATCH
The access token audience does not match. -
EXPIRED
The access token has expired. -
ISSUED_IN_FUTURE
The access token was issued in the future. -
NOT_YET_VALID
The access token is not yet valid. -
CONFIRMATION_NOT_VERIFIED
The access token requires proof of key possession. -
TOKEN_TYPE_INVALID
The access token type is invalid. -
SCOPE_INVALID
The access token scope is invalid.
-
-
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
-