Class HeaderBearerTokenResolver

java.lang.Object
org.springframework.security.oauth2.server.resource.web.HeaderBearerTokenResolver
All Implemented Interfaces:
BearerTokenResolver

public class HeaderBearerTokenResolver extends Object implements BearerTokenResolver
Generic resolver extracting pre-authenticated JWT identity from a custom header.
Since:
5.2
  • Constructor Details

    • HeaderBearerTokenResolver

      public HeaderBearerTokenResolver(String header)
  • Method Details

    • resolve

      public String resolve(jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: BearerTokenResolver
      Resolve any Bearer Token value from the request.
      Specified by:
      resolve in interface BearerTokenResolver
      Parameters:
      request - the request
      Returns:
      the Bearer Token value or null if none found