java.lang.Object | |
↳ | org.springframework.security.core.userdetails.memory.UserMap |
This class is deprecated.
Use a plain map instead
Used by InMemoryDaoImpl
to store a list of users and their corresponding granted authorities.
Usernames are used as the lookup key and are stored in lower case, to allow case-insensitive lookups. So this class should not be used if usernames need to be case-sensitive.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a user to the in-memory map.
| |||||||||||
Locates the specified user by performing a case insensitive search by username.
| |||||||||||
Indicates the size of the user map.
| |||||||||||
Set the users in this
UserMap . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a user to the in-memory map.
user | the user to be stored |
---|
IllegalArgumentException | if a null User was passed |
---|
Locates the specified user by performing a case insensitive search by username.
username | to find |
---|
UsernameNotFoundException | if the user could not be found |
---|
Indicates the size of the user map.
Set the users in this UserMap
. Overrides previously added users.
users | Map <String , UserDetails > with pairs (username, userdetails) |
---|