Package jenkins.security
Class ImpersonatingUserDetailsService
java.lang.Object
jenkins.security.ImpersonatingUserDetailsService
- All Implemented Interfaces:
UserDetailsService
@Deprecated
public class ImpersonatingUserDetailsService
extends Object
implements UserDetailsService
Deprecated.
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
.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UserDetails
attemptToImpersonate
(String username, RuntimeException e) Deprecated.loadUserByUsername
(String username) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.acegisecurity.userdetails.UserDetailsService
toSpring
-
Constructor Details
-
ImpersonatingUserDetailsService
Deprecated.
-
-
Method Details
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException Deprecated.- Specified by:
loadUserByUsername
in interfaceUserDetailsService
- Throws:
UsernameNotFoundException
DataAccessException
-
attemptToImpersonate
Deprecated.
-
ImpersonatingUserDetailsService2