Class ReactiveJwtAuthenticationConverter
java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.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 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken>convert(org.springframework.security.oauth2.jwt.Jwt jwt) voidsetJwtGrantedAuthoritiesConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, reactor.core.publisher.Flux<org.springframework.security.core.GrantedAuthority>> jwtGrantedAuthoritiesConverter) Sets theConverter<Jwt, Flux<GrantedAuthority>>to use.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
ReactiveJwtAuthenticationConverter
public ReactiveJwtAuthenticationConverter()
-
-
Method Details
-
convert
public reactor.core.publisher.Mono<org.springframework.security.authentication.AbstractAuthenticationToken> convert(org.springframework.security.oauth2.jwt.Jwt jwt) - Specified by:
convertin interfaceorg.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 theConverter<Jwt, Flux<GrantedAuthority>>to use. Defaults to a reactiveJwtGrantedAuthoritiesConverter.- Parameters:
jwtGrantedAuthoritiesConverter- The converter- See Also:
-