Class PentahoUserMap
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.memory.PentahoUserMap
-
public class PentahoUserMap extends Object
Brought over from spring-security 3.2.5, as this class no longer exists in spring-security 4.1
-
-
Constructor Summary
Constructors Constructor Description PentahoUserMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUser(org.springframework.security.core.userdetails.UserDetails user)
Adds a user to the in-memory map.org.springframework.security.core.userdetails.UserDetails
getUser(String username)
Locates the specified user by performing a case insensitive search by username.int
getUserCount()
Indicates the size of the user map.void
setUsers(Map<String,org.springframework.security.core.userdetails.UserDetails> users)
Set the users in thisUserMap
.
-
-
-
Method Detail
-
addUser
public void addUser(org.springframework.security.core.userdetails.UserDetails user) throws IllegalArgumentException
Adds a user to the in-memory map.- Parameters:
user
- the user to be stored- Throws:
IllegalArgumentException
- if a null User was passed
-
getUser
public org.springframework.security.core.userdetails.UserDetails getUser(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
Locates the specified user by performing a case insensitive search by username.- Parameters:
username
- to find- Returns:
- the located user
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
- if the user could not be found
-
getUserCount
public int getUserCount()
Indicates the size of the user map.- Returns:
- the number of users in the map
-
-