Package org.duracloud.security.impl
Class UserDetailsServiceImpl
java.lang.Object
org.duracloud.security.impl.UserDetailsServiceImpl
- All Implemented Interfaces:
DuracloudUserDetailsService,org.springframework.security.core.userdetails.UserDetailsService
This class acts as the repository of username/password/role info for access
to this DuraCloud application.
- Author:
- Andrew Woods Date: Mar 11, 2010
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.duracloud.security.domain.SecurityUserBeangetUserByUsername(String username) List<org.duracloud.security.domain.SecurityUserBean>getUsers()This method returns all of the non-system-defined users.org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username) This method retrieves UserDetails for all users from a flat file in DuraCloud.voidThis method re-initializes the existing usersTable, then adds the arg users.
-
Constructor Details
-
UserDetailsServiceImpl
public UserDetailsServiceImpl()
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException This method retrieves UserDetails for all users from a flat file in DuraCloud.- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Parameters:
username- of principal for whom details are sought- Returns:
- UserDetails for arg username
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException- if username not found
-
setUsers
This method re-initializes the existing usersTable, then adds the arg users.- Specified by:
setUsersin interfaceDuracloudUserDetailsService- Parameters:
users- to populate into the usersTable
-
getUsers
This method returns all of the non-system-defined users.- Specified by:
getUsersin interfaceDuracloudUserDetailsService- Returns:
-
getUserByUsername
- Specified by:
getUserByUsernamein interfaceDuracloudUserDetailsService
-