Class JwtReactiveAuthenticationManager

java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.JwtReactiveAuthenticationManager
All Implemented Interfaces:
org.springframework.security.authentication.ReactiveAuthenticationManager

public final class JwtReactiveAuthenticationManager extends Object implements org.springframework.security.authentication.ReactiveAuthenticationManager
A ReactiveAuthenticationManager for Jwt tokens.
Since:
5.1
  • Constructor Summary

    Constructors
    Constructor
    Description
    JwtReactiveAuthenticationManager(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.security.core.Authentication>
    authenticate(org.springframework.security.core.Authentication authentication)
     
    void
    setJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
    Use the given Converter for converting a Jwt into an AbstractAuthenticationToken.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JwtReactiveAuthenticationManager

      public JwtReactiveAuthenticationManager(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
  • Method Details

    • authenticate

      public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication)
      Specified by:
      authenticate in interface org.springframework.security.authentication.ReactiveAuthenticationManager
    • setJwtAuthenticationConverter

      public void setJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter)
      Use the given Converter for converting a Jwt into an AbstractAuthenticationToken.
      Parameters:
      jwtAuthenticationConverter - the Converter to use