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.

@FunctionalInterface public interface BearerTokenResolver
A strategy for resolving Bearer Tokens from the HttpServletRequest.
Since:
5.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(jakarta.servlet.http.HttpServletRequest request)
    Resolve any Bearer Token value from the request.
  • Method Details

    • resolve

      String resolve(jakarta.servlet.http.HttpServletRequest request)
      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