Class UserDetailsRepositoryReactiveAuthenticationManager
java.lang.Object
org.springframework.security.authentication.AbstractUserDetailsReactiveAuthenticationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
,ReactiveAuthenticationManager
public class UserDetailsRepositoryReactiveAuthenticationManager
extends AbstractUserDetailsReactiveAuthenticationManager
A
ReactiveAuthenticationManager
that uses a ReactiveUserDetailsService
to validate the provided username and password.- Since:
- 5.0
-
Field Summary
Fields inherited from class org.springframework.security.authentication.AbstractUserDetailsReactiveAuthenticationManager
logger, messages
-
Constructor Summary
ConstructorDescriptionUserDetailsRepositoryReactiveAuthenticationManager
(ReactiveUserDetailsService userDetailsService) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<UserDetails>
retrieveUser
(String username) Allows subclasses to retrieve theUserDetails
from an implementation-specific location.Methods inherited from class org.springframework.security.authentication.AbstractUserDetailsReactiveAuthenticationManager
authenticate, setCompromisedPasswordChecker, setMessageSource, setPasswordEncoder, setPostAuthenticationChecks, setScheduler, setUserDetailsPasswordService
-
Constructor Details
-
UserDetailsRepositoryReactiveAuthenticationManager
public UserDetailsRepositoryReactiveAuthenticationManager(ReactiveUserDetailsService userDetailsService)
-
-
Method Details
-
retrieveUser
Description copied from class:AbstractUserDetailsReactiveAuthenticationManager
Allows subclasses to retrieve theUserDetails
from an implementation-specific location.- Specified by:
retrieveUser
in classAbstractUserDetailsReactiveAuthenticationManager
- Parameters:
username
- The username to retrieve- Returns:
- the user information. If authentication fails, a Mono error is returned.
-