Class 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 Detail

      • PentahoUserMap

        public PentahoUserMap()
    • 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
      • setUsers

        public void setUsers​(Map<String,​org.springframework.security.core.userdetails.UserDetails> users)
        Set the users in this UserMap. Overrides previously added users.
        Parameters:
        users - Map <String, UserDetails> with pairs (username, userdetails)
        Since:
        1.1