| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.security.provisioning.InMemoryUserDetailsManager
public class InMemoryUserDetailsManager
Non-persistent implementation of UserDetailsManager which is backed by an in-memory map.
 
Mainly intended for testing and demonstration purposes, where a full blown persistent system isn't required.
| Field Summary | |
|---|---|
protected  org.apache.commons.logging.Log | 
logger
 | 
| Constructor Summary | |
|---|---|
InMemoryUserDetailsManager(Collection<UserDetails> users)
 | 
|
InMemoryUserDetailsManager(Properties users)
 | 
|
| Method Summary | |
|---|---|
 void | 
changePassword(String oldPassword,
               String newPassword)
Modify the current user's password.  | 
 void | 
createUser(UserDetails user)
Create a new user with the supplied details.  | 
 void | 
deleteUser(String username)
Remove the user with the given login name from the system.  | 
 UserDetails | 
loadUserByUsername(String username)
Locates the user based on the username.  | 
 void | 
setAuthenticationManager(AuthenticationManager authenticationManager)
 | 
 void | 
updateUser(UserDetails user)
Update the specified user.  | 
 boolean | 
userExists(String username)
Check if a user with the supplied login name exists in the system.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail | 
|---|
public InMemoryUserDetailsManager(Collection<UserDetails> users)
public InMemoryUserDetailsManager(Properties users)
| Method Detail | 
|---|
public void createUser(UserDetails user)
UserDetailsManager
createUser in interface UserDetailsManagerpublic void deleteUser(String username)
UserDetailsManager
deleteUser in interface UserDetailsManagerpublic void updateUser(UserDetails user)
UserDetailsManager
updateUser in interface UserDetailsManagerpublic boolean userExists(String username)
UserDetailsManager
userExists in interface UserDetailsManager
public void changePassword(String oldPassword,
                           String newPassword)
UserDetailsManager
changePassword in interface UserDetailsManageroldPassword - current password (for re-authentication if required)newPassword - the password to change to
public UserDetails loadUserByUsername(String username)
                               throws UsernameNotFoundException
UserDetailsServiceUserDetails object that comes back may have a username that is of a different case than what was
 actually requested..
loadUserByUsername in interface UserDetailsServiceusername - the username identifying the user whose data is required.
null)
UsernameNotFoundException - if the user could not be found or the user has no GrantedAuthoritypublic void setAuthenticationManager(AuthenticationManager authenticationManager)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||