public class PentahoUserMap extends Object
https://github.com/spring-projects/spring-security/blob/3.2.5.RELEASE/core/src/main/java/org/springframework/security/core/userdetails/memory/UserMap.java
Constructor and Description |
---|
PentahoUserMap() |
Modifier and Type | Method and 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 this
UserMap . |
public void addUser(org.springframework.security.core.userdetails.UserDetails user) throws IllegalArgumentException
user
- the user to be storedIllegalArgumentException
- if a null User was passedpublic org.springframework.security.core.userdetails.UserDetails getUser(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
username
- to findorg.springframework.security.core.userdetails.UsernameNotFoundException
- if the user could not be foundpublic int getUserCount()
Copyright © 2018 Hitachi Vantara. All rights reserved.