Class UserDetailsServiceImpl

  • All Implemented Interfaces:
    DuracloudUserDetailsService, org.springframework.security.core.userdetails.UserDetailsService

    public class UserDetailsServiceImpl
    extends Object
    implements DuracloudUserDetailsService
    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 Detail

      • UserDetailsServiceImpl

        public UserDetailsServiceImpl()
    • Method Detail

      • 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:
        loadUserByUsername in interface org.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

        public void setUsers​(List<org.duracloud.security.domain.SecurityUserBean> users)
        This method re-initializes the existing usersTable, then adds the arg users.
        Specified by:
        setUsers in interface DuracloudUserDetailsService
        Parameters:
        users - to populate into the usersTable
      • getUsers

        public List<org.duracloud.security.domain.SecurityUserBean> getUsers()
        This method returns all of the non-system-defined users.
        Specified by:
        getUsers in interface DuracloudUserDetailsService
        Returns: