Class ReactiveJwtAuthenticationConverter

java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.ReactiveJwtAuthenticationConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Mono<AbstractAuthenticationToken>>

public final class ReactiveJwtAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Mono<AbstractAuthenticationToken>>
Reactive version of JwtAuthenticationConverter for converting a Jwt to a Mono<AbstractAuthenticationToken>.
Since:
5.2
  • Constructor Details

    • ReactiveJwtAuthenticationConverter

      public ReactiveJwtAuthenticationConverter()
  • Method Details

    • convert

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

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

      public void setPrincipalClaimName(String principalClaimName)
      Sets the principal claim name. Defaults to JwtClaimNames.SUB.
      Parameters:
      principalClaimName - The principal claim name
      Since:
      6.1