public class

InMemoryDaoImpl

extends Object
implements InitializingBean UserDetailsService
java.lang.Object
   ↳ org.springframework.security.core.userdetails.memory.InMemoryDaoImpl

This class is deprecated.
Use InMemoryUserDetailsManager instead (or write your own implementation)

Class Overview

Retrieves user details from an in-memory list created by the bean context.

Summary

Public Constructors
InMemoryDaoImpl()
Public Methods
void afterPropertiesSet()
UserMap getUserMap()
UserDetails loadUserByUsername(String username)
Locates the user based on the username.
void setUserMap(UserMap userMap)
void setUserProperties(Properties props)
Modifies the internal UserMap to reflect the Properties instance passed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.security.core.userdetails.UserDetailsService

Public Constructors

public InMemoryDaoImpl ()

Public Methods

public void afterPropertiesSet ()

Throws
Exception

public UserMap getUserMap ()

public UserDetails loadUserByUsername (String username)

Locates the user based on the username. In the actual implementation, the search may possibly be case insensitive, or case insensitive depending on how the implementation instance is configured. In this case, the UserDetails object that comes back may have a username that is of a different case than what was actually requested..

Parameters
username the username identifying the user whose data is required.
Returns
  • a fully populated user record (never null)

public void setUserMap (UserMap userMap)

public void setUserProperties (Properties props)

Modifies the internal UserMap to reflect the Properties instance passed. This helps externalise user information to another file etc.

Parameters
props the account information in a Properties object format