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 thoseSecurityRealm
that doesn't allow query of other users. When the backend responds withUserMayOrMayNotExistException
, we try to replace that with information stored inLastGrantedAuthoritiesProperty
.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ImpersonatingUserDetailsService(UserDetailsService base)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected UserDetails
attemptToImpersonate(String username, RuntimeException e)
Deprecated.UserDetails
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 Detail
-
ImpersonatingUserDetailsService
public ImpersonatingUserDetailsService(UserDetailsService base)
Deprecated.
-
-
Method Detail
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
Deprecated.- Specified by:
loadUserByUsername
in interfaceUserDetailsService
- Throws:
UsernameNotFoundException
DataAccessException
-
attemptToImpersonate
protected UserDetails attemptToImpersonate(String username, RuntimeException e)
Deprecated.
-
-