Class JwtReactiveAuthenticationManager
java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.JwtReactiveAuthenticationManager
- All Implemented Interfaces:
org.springframework.security.authentication.ReactiveAuthenticationManager
public final class JwtReactiveAuthenticationManager
extends Object
implements org.springframework.security.authentication.ReactiveAuthenticationManager
A
ReactiveAuthenticationManager for Jwt tokens.- Since:
- 5.1
-
Constructor Summary
ConstructorsConstructorDescriptionJwtReactiveAuthenticationManager(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.security.core.Authentication>authenticate(org.springframework.security.core.Authentication authentication) voidsetJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, ? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter) Use the givenConverterfor converting aJwtinto anAbstractAuthenticationToken.
-
Constructor Details
-
JwtReactiveAuthenticationManager
public JwtReactiveAuthenticationManager(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
-
-
Method Details
-
authenticate
public reactor.core.publisher.Mono<org.springframework.security.core.Authentication> authenticate(org.springframework.security.core.Authentication authentication) - Specified by:
authenticatein interfaceorg.springframework.security.authentication.ReactiveAuthenticationManager
-
setJwtAuthenticationConverter
public void setJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt, ? extends reactor.core.publisher.Mono<? extends org.springframework.security.authentication.AbstractAuthenticationToken>> jwtAuthenticationConverter) Use the givenConverterfor converting aJwtinto anAbstractAuthenticationToken.- Parameters:
jwtAuthenticationConverter- theConverterto use
-