Class BearerTokenAuthenticationFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware

    public final class BearerTokenAuthenticationFilter
    extends org.springframework.web.filter.OncePerRequestFilter
    Authenticates requests that contain an OAuth 2.0 Bearer Token. This filter should be wired with an AuthenticationManager that can authenticate a BearerTokenAuthenticationToken.
    Since:
    5.1
    See Also:
    The OAuth 2.0 Authorization Framework: Bearer Token Usage, JwtAuthenticationProvider
    • Constructor Detail

      • BearerTokenAuthenticationFilter

        public BearerTokenAuthenticationFilter​(AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest> authenticationManagerResolver)
        Construct a BearerTokenAuthenticationFilter using the provided parameter(s)
        Parameters:
        authenticationManagerResolver -
      • BearerTokenAuthenticationFilter

        public BearerTokenAuthenticationFilter​(AuthenticationManager authenticationManager)
        Construct a BearerTokenAuthenticationFilter using the provided parameter(s)
        Parameters:
        authenticationManager -