Class InMemoryUserDetailsManager

java.lang.Object
org.springframework.security.provisioning.InMemoryUserDetailsManager
All Implemented Interfaces:
UserDetailsPasswordService, UserDetailsService, UserDetailsManager

public class InMemoryUserDetailsManager extends Object implements UserDetailsManager, UserDetailsPasswordService
Non-persistent implementation of UserDetailsManager which is backed by an in-memory map.

Mainly intended for testing and demonstration purposes, where a full blown persistent system isn't required.

Since:
3.1
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
  • Constructor Details

    • InMemoryUserDetailsManager

      public InMemoryUserDetailsManager()
    • InMemoryUserDetailsManager

      public InMemoryUserDetailsManager(Collection<UserDetails> users)
    • InMemoryUserDetailsManager

      public InMemoryUserDetailsManager(UserDetails... users)
    • InMemoryUserDetailsManager

      public InMemoryUserDetailsManager(Properties users)
  • Method Details