Interface BearerTokenResolver
- All Known Implementing Classes:
DefaultBearerTokenResolver
,HeaderBearerTokenResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy for resolving
Bearer
Tokens from the
HttpServletRequest
.- Since:
- 5.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(jakarta.servlet.http.HttpServletRequest request) Resolve any Bearer Token value from the request.
-
Method Details
-
resolve
Resolve any Bearer Token value from the request.- Parameters:
request
- the request- Returns:
- the Bearer Token value or
null
if none found - Throws:
OAuth2AuthenticationException
- if the found token is invalid
-