public class UserDetailsServiceImpl extends Object implements DuracloudUserDetailsService
Constructor and Description |
---|
UserDetailsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
SecurityUserBean |
getUserByUsername(String username) |
List<SecurityUserBean> |
getUsers()
This method returns all of the non-system-defined users.
|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username)
This method retrieves UserDetails for all users from a flat file in
DuraCloud.
|
void |
setUsers(List<SecurityUserBean> users)
This method re-initializes the existing usersTable, then adds the arg
users.
|
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
username
- of principal for whom details are soughtorg.springframework.security.core.userdetails.UsernameNotFoundException
- if username not foundpublic void setUsers(List<SecurityUserBean> users)
setUsers
in interface DuracloudUserDetailsService
users
- to populate into the usersTablepublic List<SecurityUserBean> getUsers()
getUsers
in interface DuracloudUserDetailsService
public SecurityUserBean getUserByUsername(String username)
getUserByUsername
in interface DuracloudUserDetailsService
Copyright © 2009–2014 DuraSpace. All rights reserved.