Chapter 14: Tomcat Security File-Based Realm: UserDatabase A
Chapter 14: Tomcat Security File-Based Realm: UserDatabase A file-based Realm maintains its authentication data in flat files. These files can be edited using a normal text editor. The data is kept in human-readable format (such as XML). The primary built-in file-based Realm implementation for Tomcat 6 is called UserDatabase. UserDatabase reads authentication data from a specified XML file for use by Tomcat 6 during startup. This realm also has the following properties: . The data in the Realm can be programmatically changed during the lifetime of the engine. This enables various possibilities for building administrative utilities. . UserDatabase is persistent. That is, upon modification and shutdown, the UserDatabase can also persist any changes back to its associated XML ( tomcat-users.xml) data file. . The admin(not yet available with TC6) utility supports the graphical editing of authentication data within a UserDatabase Realm. The UserDatabase realm is an integral part of Tomcat 6 s authentication and programmatic security support. Configuring UserDatabase In the default server.xml (in the Tomcat 6 server distribution), the UserDatabase Realm is already configured. The UserDatabase is typically configured in the
For high quality java hosting services please check tomcat web hosting website.