Package jenkins.security
Class ImpersonatingUserDetailsService
- java.lang.Object
-
- jenkins.security.ImpersonatingUserDetailsService
-
- All Implemented Interfaces:
UserDetailsService
@Deprecated public class ImpersonatingUserDetailsService extends Object implements UserDetailsService
Deprecated.UserDetailsServicefor thoseSecurityRealmthat 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 UserDetailsattemptToImpersonate(String username, RuntimeException e)Deprecated.UserDetailsloadUserByUsername(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:
loadUserByUsernamein interfaceUserDetailsService- Throws:
UsernameNotFoundExceptionDataAccessException
-
attemptToImpersonate
protected UserDetails attemptToImpersonate(String username, RuntimeException e)
Deprecated.
-
-