Class AccessTokenValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.revetsec.RevetsecException
com.revetsec.oauth.AccessTokenValidationException
- All Implemented Interfaces:
Serializable
A local bearer credential verdict, with fixed reasons and no token, claims or lower-layer exception retained.
Infrastructure failures retain their own exception types; they must not be turned into invalid_token.
Applications catch this exception; only Revetsec constructs it. No scope permission is granted by parsing.
- Since:
- 1.0.0
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe failed credential check. -
Method Summary
Modifier and TypeMethodDescriptionReturns invalid_request for malformed presentation, otherwise invalid_token.Returns a lower-layer JWT reason, without retaining its exception or input.Returns the fixed local failure reason.Methods inherited from class RevetsecException
getCategory, isTemporaryConditionModifier and TypeMethodDescriptionfinal @NonNull ErrorCategoryReturns the category of this failure.Returns whether this failure is classified as a temporary condition.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getReason
Returns the fixed local failure reason.- Returns:
- the reason
- Since:
- 1.0.0
-
getBearerError
Returns invalid_request for malformed presentation, otherwise invalid_token.- Returns:
- the bearer error
- Since:
- 1.0.0
-
getJoseReason
Returns a lower-layer JWT reason, without retaining its exception or input.- Returns:
- the JOSE reason, if applicable
- Since:
- 1.0.0
-