Babylon Java Chat

Class BabylonUserTool

java.lang.Object
  extended by BabylonUserTool

public class BabylonUserTool
extends java.lang.Object

Creates and deletes user account entries in the password file. It has a main() function, and so can be used from the command line, but it is also invoked from the GUI of the BabylonServerWindow.

Author:
Andy McLaughlin

Method Summary
 void createUser(java.lang.String userName, java.lang.String encryptedPassword)
          Creates the user with the specified name and pre-encrypted password.
 void deleteUser(java.lang.String userName)
          Deletes the user with the specified name.
 java.lang.String[] listUsers()
          Returns a String array of the users read from the password file.
static void main(java.lang.String[] args)
          Allows this class to be used as a command-line program for creating and deleting users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUser

public void createUser(java.lang.String userName,
                       java.lang.String encryptedPassword)
                throws java.lang.Exception
Creates the user with the specified name and pre-encrypted password.

Throws:
java.lang.Exception

deleteUser

public void deleteUser(java.lang.String userName)
                throws java.lang.Exception
Deletes the user with the specified name.

Throws:
java.lang.Exception

listUsers

public java.lang.String[] listUsers()
                             throws java.lang.Exception
Returns a String array of the users read from the password file.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Allows this class to be used as a command-line program for creating and deleting users.


Babylon Java Chat