org.springframework.security.core.userdetails.memory
Class UserMap

java.lang.Object
  extended by org.springframework.security.core.userdetails.memory.UserMap

Deprecated. Use a plain map instead

@Deprecated
public class UserMap
extends java.lang.Object

Used by InMemoryDaoImpl to store a list of users and their corresponding granted authorities.


Constructor Summary
UserMap()
          Deprecated.  
 
Method Summary
 void addUser(User user)
          Deprecated. Adds a user to the in-memory map.
 User getUser(java.lang.String username)
          Deprecated. Locates the specified user by performing a case insensitive search by username.
 int getUserCount()
          Deprecated. Indicates the size of the user map.
 void setUsers(java.util.Map<java.lang.String,User> users)
          Deprecated. Set the users in this UserMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserMap

public UserMap()
Deprecated. 
Method Detail

addUser

public void addUser(User user)
             throws java.lang.IllegalArgumentException
Deprecated. 
Adds a user to the in-memory map.

Parameters:
user - the user to be stored
Throws:
java.lang.IllegalArgumentException - if a null User was passed

getUser

public User getUser(java.lang.String username)
             throws UsernameNotFoundException
Deprecated. 
Locates the specified user by performing a case insensitive search by username.

Parameters:
username - to find
Returns:
the located user
Throws:
UsernameNotFoundException - if the user could not be found

getUserCount

public int getUserCount()
Deprecated. 
Indicates the size of the user map.

Returns:
the number of users in the map

setUsers

public void setUsers(java.util.Map<java.lang.String,User> users)
Deprecated. 
Set the users in this UserMap. Overrides previously added users.

Parameters:
users - Map <String, User> with pairs (username, userdetails)
Since:
1.1