public class ReactiveAuthenticationManagerAdapter extends java.lang.Object implements ReactiveAuthenticationManager
| Constructor and Description |
|---|
ReactiveAuthenticationManagerAdapter(AuthenticationManager authenticationManager) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Authentication> |
authenticate(Authentication token)
Attempts to authenticate the provided
Authentication |
void |
setScheduler(reactor.core.scheduler.Scheduler scheduler)
Set a scheduler that will be published on to perform the authentication logic.
|
public ReactiveAuthenticationManagerAdapter(AuthenticationManager authenticationManager)
public reactor.core.publisher.Mono<Authentication> authenticate(Authentication token)
ReactiveAuthenticationManagerAuthenticationauthenticate in interface ReactiveAuthenticationManagertoken - the Authentication to testAuthentication is returned. If
authentication cannot be determined, an empty Mono is returned. If authentication
fails, a Mono error is returned.public void setScheduler(reactor.core.scheduler.Scheduler scheduler)
scheduler - a scheduler to be published onjava.lang.IllegalArgumentException - if the scheduler is null