AS/400 Toolbox for Java \ Access classes \ AS400 object \ Summary

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.

This table should be used for client connections, not for running natively on the AS/400.

System
Supplied
on
Constructor
User ID
Supplied
on
Constructor
Password
Supplied
on
Constructor
Default
User
Is
Established
Password
in Cache
for
User ID
Result
          User is prompted for system name, user ID, and password. Default user ID is established and password is cached.
X         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.
X X       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.
X X X     No prompt. Default user ID is not changed. Password is not cached.
      X   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.
X     X   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.
X     X X No prompt. Connect using default user ID and password from cache.
X X     X No prompt. Connect as specified user using password from cache.
X X   X X No prompt. Connect as specified user using password from cache.
X X X X   No prompt. Connect as specified user.
System
Supplied
on
Constructor
User ID
Supplied
on
Constructor
Password
Supplied
on
Constructor
Default
User
Is
Established
Password
in Cache
for
User ID
Result

[ Information Center Home Page | Feedback ] [ Legal | AS/400 Glossary ]