org.springframework.security.config.authentication
Class CachingUserDetailsService

java.lang.Object
  extended by org.springframework.security.config.authentication.CachingUserDetailsService
All Implemented Interfaces:
UserDetailsService

public class CachingUserDetailsService
extends java.lang.Object
implements UserDetailsService

Since:
2.0

Method Summary
 UserCache getUserCache()
           
 UserDetails loadUserByUsername(java.lang.String username)
          Locates the user based on the username.
 void setUserCache(UserCache userCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserCache

public UserCache getUserCache()

setUserCache

public void setUserCache(UserCache userCache)

loadUserByUsername

public UserDetails loadUserByUsername(java.lang.String username)
Description copied from interface: UserDetailsService
Locates the user based on the username. In the actual implementation, the search may possibly be case insensitive, or case insensitive depending on how the implementation instance is configured. In this case, the UserDetails object that comes back may have a username that is of a different case than what was actually requested..

Specified by:
loadUserByUsername in interface UserDetailsService
Parameters:
username - the username identifying the user whose data is required.
Returns:
a fully populated user record (never null)