Class DelegateUserDetailsServiceSwitchUserDetailsService
java.lang.Object
com.flowable.core.spring.security.switchuser.DelegateUserDetailsServiceSwitchUserDetailsService
- All Implemented Interfaces:
SwitchUserDetailsService
public class DelegateUserDetailsServiceSwitchUserDetailsService
extends Object
implements SwitchUserDetailsService
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionloadUserByUsername
(Authentication currentAuthentication, String username) Locates the user based on the username.
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegateUserDetailsServiceSwitchUserDetailsService
-
-
Method Details
-
loadUserByUsername
public UserDetails loadUserByUsername(Authentication currentAuthentication, String username) throws UsernameNotFoundException Description copied from interface:SwitchUserDetailsService
Locates the user based on the username.- Specified by:
loadUserByUsername
in interfaceSwitchUserDetailsService
- Parameters:
currentAuthentication
- the authentication of the user performing the impersonationusername
- the username that should be impersonated- Returns:
- a fully populated user record (never
null
) - Throws:
UsernameNotFoundException
- if ther could not be found
-