Java EE 5 SDK

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.

See:
          Description

Interface Summary
LoginInfoStore An interface that represents the database of LoginInfo objects.
 

Class Summary
LoginInfo An immutable class that represents an arbitrary LoginInfo for Appserver Administration Client.
LoginInfoStoreFactory A factory class to create instances of LoginInfoStore.
MemoryHashLoginInfoStore A LoginInfoStore that reads the information from the default file ".asadminpass" and stores it as a map in the memory.
 

Exception Summary
StoreException An exception class to communicate the error in accessing or mutating the store.
 

Package com.sun.appserv.management.client.prefs Description

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:

An example of stored login information would be:

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

This file is not supposed to be modified by hand.


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.