@Deprecated public class ImpersonatingUserDetailsService extends Object implements 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(UserDetailsService base)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected UserDetails |
attemptToImpersonate(String username,
RuntimeException e)
Deprecated.
|
UserDetails |
loadUserByUsername(String username)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromSpring, toSpring
public ImpersonatingUserDetailsService(UserDetailsService base)
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
loadUserByUsername
in interface UserDetailsService
UsernameNotFoundException
DataAccessException
protected UserDetails attemptToImpersonate(String username, RuntimeException e)
Copyright © 2004–2021. All rights reserved.