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 java.lang.Object implements org.springframework.security.authentication.ReactiveAuthenticationManagerAReactiveAuthenticationManagerfor Jwt tokens.- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description JwtReactiveAuthenticationManager(org.springframework.security.oauth2.jwt.ReactiveJwtDecoder jwtDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.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.
-
-
-
Method Detail
-
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
-
-