AS400 class
The IBM® Toolbox for Java™ AS400 class manages a set of socket connections to the server jobs on server and sign-on behavior for the server, including prompting the user for sign-on information, password caching, and default user management.
The Java program must provide an AS400 object when the Java program uses an instance of a class that accesses the IBM i system. For example, the CommandCall object requires an AS400 object before it can send commands to the system.
The AS400 object handles connections, user IDs, and passwords differently when it is running in the IBM i Java virtual machine. For more information, see IBM i Java virtual machine.
AS400 objects now support Kerberos authentication, using the Java Generic Security Service Application Programming Interface (JGSS API) to authenticate to the server, instead of using a user ID and password.
See managing connections for information about managing connections to the server through the AS400 object. See the AS400ConnectionPool Javadoc for information about reducing initial connect time by requesting connections from a connection pool.
The AS400 class provides the following sign-on functions:
- Authenticate the user profile
- Get a profile token credential and authenticate the associated user profile
- Set a profile token credential
- Manage default user IDs
- Cache passwords
- Prompt for user ID
- Change a password
- Get the version and release of the operating system
For information about using an AS400 object when sending or receiving encrypted data, see the SecureAS400 class.