|
spring-security-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.security.core.userdetails.memory.UserMap
@Deprecated public class UserMap
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(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(Map<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 |
|---|
public UserMap()
| Method Detail |
|---|
public void addUser(User user)
throws IllegalArgumentException
user - the user to be stored
IllegalArgumentException - if a null User was passed
public User getUser(String username)
throws UsernameNotFoundException
username - to find
UsernameNotFoundException - if the user could not be foundpublic int getUserCount()
public void setUsers(Map<String,User> users)
UserMap. Overrides previously added users.
users - Map <String, User> with pairs (username, userdetails)
|
spring-security-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||