Class ReactiveJwtAuthenticationConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken>>

    public final class ReactiveJwtAuthenticationConverter
    extends java.lang.Object
    implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken>>
    Reactive version of JwtAuthenticationConverter for converting a Jwt to a Mono<AbstractAuthenticationToken>.
    Since:
    5.2
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken> convert​(org.springframework.security.oauth2.jwt.Jwt jwt)  
      void setJwtGrantedAuthoritiesConverter​(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​reactor.core.publisher.Flux<org.springframework.security.core.GrantedAuthority>> jwtGrantedAuthoritiesConverter)
      Sets the Converter<Jwt, Flux<GrantedAuthority>> to use.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.convert.converter.Converter

        andThen
    • Constructor Detail

      • ReactiveJwtAuthenticationConverter

        public ReactiveJwtAuthenticationConverter()
    • Method Detail

      • convert

        public reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken> convert​(org.springframework.security.oauth2.jwt.Jwt jwt)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken>>
      • setJwtGrantedAuthoritiesConverter

        public void setJwtGrantedAuthoritiesConverter​(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​reactor.core.publisher.Flux<org.springframework.security.core.GrantedAuthority>> jwtGrantedAuthoritiesConverter)
        Sets the Converter<Jwt, Flux<GrantedAuthority>> to use. Defaults to a reactive JwtGrantedAuthoritiesConverter.
        Parameters:
        jwtGrantedAuthoritiesConverter - The converter
        See Also:
        JwtGrantedAuthoritiesConverter