Package 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
asadmin://joe%20bloe@localhost:4848 TW9oYW1tYWQgQXNpZiB0byBLaGFu
This file is not supposed to be modified by hand.-
Interface Summary Interface Description LoginInfoStore An interface that represents the database of LoginInfo objects. -
Class Summary Class Description LoginInfo An immutable class that represents an arbitrary LoginInfo for Appserver Administration Client.LoginInfoStoreFactory A factory class to create instances of LoginInfoStore.MemoryHashLoginInfoStore ALoginInfoStore
that reads the information from the default file ".gfclient/pass" and stores it as a map in the memory. -
Exception Summary Exception Description StoreException An exception class to communicate the error in accessing or mutating the store.