com.sun.appserv.management.client.prefs

Contains classes and interfaces to edit information about login to a particular domain (especially admin user name and password)

Following is the way to use the classes and interfaces in this package:

    final LoginInfoStore lis = LoginInfoStoreFactory.getDefaultStore();
    final LoginInfo li       = new LoginInfo("localhost", 4848, "admin", "admin123");

    lis.store(li, true); //overwrites the login information for "localhost" and 4848

The default store for login information in the file ".asadminpass" in the user's home directory. The format of the file is as follows:

- A line terminated by line termination character contains login information for one domain.
- The Login Information is stored like uri-encoding-of-host-port-admin-user-name encoded-admin-password

An example of stored login information would be:

asadmin://joe%20bloe@localhost:4848 TW9oYW1tYWQgQXNpZiB0byBLaGFu

This file is not supposed to be modified by hand.