Class JwtReactiveAuthenticationManager

  • All Implemented Interfaces:
    org.springframework.security.authentication.ReactiveAuthenticationManager

    public final class JwtReactiveAuthenticationManager
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • JwtReactiveAuthenticationManager

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

      • 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