The password cache allows the IBM® Toolbox for Java™ to save password and user ID information so that it does not prompt the user for that information every time a connection is made.
Use the methods provided by the AS400 object to do the following:
The password cache applies to all AS400 objects that represent an iSeries™ server within a Java virtual machine. Java does not allow sharing information between virtual machines, so a cached password in one Java virtual machine is not visible to another virtual machine. The cache is discarded when the last AS400 object is garbage collected. The Sign-on dialog has a checkbox that gives the user the option to cache the password. When an AS400 object is constructed, the Java program has the option to supply the user ID and password. Passwords supplied on constructors are not cached.
The AS400 object provides methods to clear the password cache and disable the password cache . See Prompting, default user ID, and password caching summary for more information.