Class MemoryUserDatabase

java.lang.Object
org.apache.catalina.users.MemoryUserDatabase
All Implemented Interfaces:
UserDatabase

public class MemoryUserDatabase extends Object implements UserDatabase
Concrete implementation of UserDatabase that loads all defined users, groups, and roles into an in-memory data structure, and uses a specified XML file for its persistent storage.

This class is thread-safe.

This class does not enforce what, in an RDBMS, would be called referential integrity. Concurrent modifications may result in inconsistent data such as a User retaining a reference to a Role that has been removed from the database.

Since:
4.1
Author:
Craig R. McClanahan