Prompting, default user ID, and password caching summary

Java™ programs can control when prompting for user ID and password caching occurs. The information from the Sign-On dialog can be used to set the default user ID and cache the password. The following table summarizes when prompting takes place, what information is retrieved, and what information is set.

This table assumes that the Java program allows default user ID processing and password caching, and that you checked the Default User ID box and the Save Password box on the Sign-On dialog.

Use this table for client connections, not for running Java on your server.

System supplied on constructor User ID supplied on constructor Password supplied on constructor Default user is established Password in cache for user ID Result of using marked settings
          User is prompted for system name, user ID, and password. Default user ID is established and password is cached.
Yes         User is prompted for user ID and password. System name is displayed but cannot be changed. Default user ID is established and password is cached.
Yes Yes       User is prompted for password. User ID is displayed and can be changed. System name is displayed but cannot be changed. Default user ID is not changed. Password is cached.
Yes Yes Yes     No prompt. Default user ID is not changed. Password is not cached.
      Yes   User is prompted for system name and password. User ID is displayed and can be changed. Changing the user ID will not change the default user ID. Password is cached.
Yes     Yes   Prompt for password for the default user ID. User ID is displayed and can be changed. System name is displayed but cannot be changed. Password is cached.
Yes     Yes Yes No prompt. Connect using default user ID and password from cache.
Yes Yes     Yes No prompt. Connect as specified user using password from cache.
Yes Yes   Yes Yes No prompt. Connect as specified user using password from cache.
Yes Yes Yes Yes   No prompt. Connect as specified user.