Class DelegatingReactiveAuthenticationManager
java.lang.Object
org.springframework.security.authentication.DelegatingReactiveAuthenticationManager
- All Implemented Interfaces:
ReactiveAuthenticationManager
public class DelegatingReactiveAuthenticationManager
extends Object
implements ReactiveAuthenticationManager
A
ReactiveAuthenticationManager that delegates to other
ReactiveAuthenticationManager instances. When continueOnError is
true, will continue until the first non-empty, non-error result; otherwise,
will continue only until the first non-empty result.- Since:
- 5.1
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingReactiveAuthenticationManager(ReactiveAuthenticationManager... entryPoints) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>authenticate(Authentication authentication) Attempts to authenticate the providedAuthenticationvoidsetContinueOnError(boolean continueOnError) Continue iterating when a delegate errors, defaults tofalse
-
Constructor Details
-
DelegatingReactiveAuthenticationManager
-
DelegatingReactiveAuthenticationManager
-
-
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.
-
setContinueOnError
public void setContinueOnError(boolean continueOnError) Continue iterating when a delegate errors, defaults tofalse- Parameters:
continueOnError- whether to continue when a delegate errors- Since:
- 6.3
-