org.apache.tomcat.security.file
public final class: FileRealmTool [javadoc |
source]
java.lang.Object
org.apache.tomcat.security.file.FileRealmTool
Command-line tool to manipulate database files containing FileRealmDatabase
information. Usage:
java org.apache.tomcat.security.file.FileRealmTool {path} {commands}
where
{path}
is the pathname to a local file containing the
database information, and
{commands}
is a series of zero or
more commands (each of which including command parameters) from the
following list:
- -addGroup {group} - Add a new group with the specified name
- -addMember {group} {user} - Make {user} a member of {group}
- -addRole {group/user} {role} - Add an explicit assignment of
{role} to the specified {group} or {user}.
- -addUser {user} {password} - Add a new user with the specified
username and (cleartext) password.
- -dropGroup {group} - Drop this group and all its associated
memberships and roles
- -dropMember {group} {user} - Make {user} no longer a member
of {group}
- -dropRole {group/user} {role} - Drop this explicitly assigned
{role} from the specified {group} or {user}.
- -dropUser {user} - Drop this user and all its associated
memberships and roles
- -list - List the users, groups, and roles in this database
To initialize a new database file for use by this tool, create a text file
(whose name ends in ".xml") with the following contents:
- author:
Craig
- R. McClanahan
- version:
$
- Revision: 1.2 $ $Date: 2000/02/26 02:32:15 $
Method from org.apache.tomcat.security.file.FileRealmTool Summary: |
---|
main |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.tomcat.security.file.FileRealmTool Detail: |
public static void main(String[] arguments) {
args = arguments;
open();
process();
close();
}
The application main program. |