Class HeaderBearerTokenResolver
java.lang.Object
org.springframework.security.oauth2.server.resource.web.HeaderBearerTokenResolver
- All Implemented Interfaces:
BearerTokenResolver
Generic resolver extracting pre-authenticated JWT identity from a custom header.
- Since:
- 5.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(jakarta.servlet.http.HttpServletRequest request) Resolve any Bearer Token value from the request.
-
Constructor Details
-
HeaderBearerTokenResolver
-
-
Method Details
-
resolve
Description copied from interface:BearerTokenResolver
Resolve any Bearer Token value from the request.- Specified by:
resolve
in interfaceBearerTokenResolver
- Parameters:
request
- the request- Returns:
- the Bearer Token value or
null
if none found
-