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
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>
authenticate
(Authentication authentication) Attempts to authenticate the providedAuthentication
void
setJwtAuthenticationConverter
(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:ReactiveAuthenticationManager
Attempts to authenticate the providedAuthentication
- Specified by:
authenticate
in interfaceReactiveAuthenticationManager
- Parameters:
authentication
- theAuthentication
to test- Returns:
- if authentication is successful an
Authentication
is 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
- theConverter
to use
-