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 java.lang.Object implements org.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Flux<GrantedAuthority>>
Adapts aConverter<Jwt, Collection<GrantedAuthority>>
to aConverter<Jwt, Flux<GrantedAuthority>>
.Make sure the
Converter<Jwt, Collection<GrantedAuthority>>
being adapted is non-blocking.- Since:
- 5.2
- See Also:
JwtGrantedAuthoritiesConverter
-
-
Constructor Summary
Constructors Constructor Description ReactiveJwtGrantedAuthoritiesConverterAdapter(org.springframework.core.convert.converter.Converter<Jwt,java.util.Collection<GrantedAuthority>> grantedAuthoritiesConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<GrantedAuthority>
convert(Jwt jwt)
-
-
-
Constructor Detail
-
ReactiveJwtGrantedAuthoritiesConverterAdapter
public ReactiveJwtGrantedAuthoritiesConverterAdapter(org.springframework.core.convert.converter.Converter<Jwt,java.util.Collection<GrantedAuthority>> grantedAuthoritiesConverter)
-
-
Method Detail
-
convert
public reactor.core.publisher.Flux<GrantedAuthority> convert(Jwt jwt)
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<Jwt,reactor.core.publisher.Flux<GrantedAuthority>>
-
-