Class ReactiveJwtGrantedAuthoritiesConverterAdapter

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

public final class ReactiveJwtGrantedAuthoritiesConverterAdapter extends Object implements org.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Flux<GrantedAuthority>>
Adapts a Converter<Jwt, Collection<GrantedAuthority>> to a Converter<Jwt, Flux<GrantedAuthority>>.

Make sure the Converter<Jwt, Collection<GrantedAuthority>> being adapted is non-blocking.

Since:
5.2
See Also:
  • Constructor Details

    • ReactiveJwtGrantedAuthoritiesConverterAdapter

      public ReactiveJwtGrantedAuthoritiesConverterAdapter(org.springframework.core.convert.converter.Converter<Jwt,Collection<GrantedAuthority>> grantedAuthoritiesConverter)
  • Method Details

    • convert

      public reactor.core.publisher.Flux<GrantedAuthority> convert(Jwt jwt)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Flux<GrantedAuthority>>