public class ImpersonatingUserDetailsService extends Object implements org.acegisecurity.userdetails.UserDetailsService
UserDetailsService for those SecurityRealm
that doesn't allow query of other users.
When the backend responds with UserMayOrMayNotExistException, we try to replace that with
information stored in LastGrantedAuthoritiesProperty.| Constructor and Description |
|---|
ImpersonatingUserDetailsService(org.acegisecurity.userdetails.UserDetailsService base) |
| Modifier and Type | Method and Description |
|---|---|
protected org.acegisecurity.userdetails.UserDetails |
attemptToImpersonate(String username,
RuntimeException e) |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username) |
public ImpersonatingUserDetailsService(org.acegisecurity.userdetails.UserDetailsService base)
public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsServiceorg.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionprotected org.acegisecurity.userdetails.UserDetails attemptToImpersonate(String username, RuntimeException e)
Copyright © 2019. All rights reserved.