Class SwitchUserDetailsServiceUserDetailsService
- java.lang.Object
-
- com.flowable.core.spring.security.switchuser.SwitchUserDetailsServiceUserDetailsService
-
- All Implemented Interfaces:
UserDetailsService
public class SwitchUserDetailsServiceUserDetailsService extends Object implements UserDetailsService
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<SwitchUserDetailsService>
userDetailsServices
-
Constructor Summary
Constructors Constructor Description SwitchUserDetailsServiceUserDetailsService(Collection<SwitchUserDetailsService> userDetailsServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDetails
loadUserByUsername(String username)
protected UserDetails
loadUserByUsername(Authentication originalAuthentication, String username)
-
-
-
Field Detail
-
userDetailsServices
protected Collection<SwitchUserDetailsService> userDetailsServices
-
-
Constructor Detail
-
SwitchUserDetailsServiceUserDetailsService
public SwitchUserDetailsServiceUserDetailsService(Collection<SwitchUserDetailsService> userDetailsServices)
-
-
Method Detail
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException
- Specified by:
loadUserByUsername
in interfaceUserDetailsService
- Throws:
UsernameNotFoundException
-
loadUserByUsername
protected UserDetails loadUserByUsername(Authentication originalAuthentication, String username)
-
-