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
Fields -
Constructor Summary
ConstructorsConstructorDescription -
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:SwitchUserDetailsServiceLocates the user based on the username.- Specified by:
loadUserByUsernamein 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
-