Class ReactiveJwtGrantedAuthoritiesConverterAdapter

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

public final class ReactiveJwtGrantedAuthoritiesConverterAdapter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,reactor.core.publisher.Flux<org.springframework.security.core.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 Summary

    Constructors
    Constructor
    Description
    ReactiveJwtGrantedAuthoritiesConverterAdapter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>> grantedAuthoritiesConverter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Flux<org.springframework.security.core.GrantedAuthority>
    convert(org.springframework.security.oauth2.jwt.Jwt jwt)
     

    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 Details

    • ReactiveJwtGrantedAuthoritiesConverterAdapter

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

    • convert

      public reactor.core.publisher.Flux<org.springframework.security.core.GrantedAuthority> 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.Flux<org.springframework.security.core.GrantedAuthority>>