Class JwtReactiveAuthenticationManager
java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.JwtReactiveAuthenticationManager
- All Implemented Interfaces:
ReactiveAuthenticationManager
public final class JwtReactiveAuthenticationManager
extends Object
implements ReactiveAuthenticationManager
A
ReactiveAuthenticationManager for Jwt tokens.- Since:
- 5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>authenticate(Authentication authentication) Attempts to authenticate the providedAuthenticationvoidsetJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<Jwt, ? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> jwtAuthenticationConverter)
-
Constructor Details
-
JwtReactiveAuthenticationManager
-
-
Method Details
-
authenticate
Description copied from interface:ReactiveAuthenticationManagerAttempts to authenticate the providedAuthentication- Specified by:
authenticatein interfaceReactiveAuthenticationManager- Parameters:
authentication- theAuthenticationto test- Returns:
- if authentication is successful an
Authenticationis returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned.
-
setJwtAuthenticationConverter
public void setJwtAuthenticationConverter(org.springframework.core.convert.converter.Converter<Jwt, ? extends reactor.core.publisher.Mono<? extends AbstractAuthenticationToken>> jwtAuthenticationConverter) - Parameters:
jwtAuthenticationConverter- theConverterto use
-