All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.AS400

java.lang.Object
   |
   +----com.ibm.as400.access.AS400

public class AS400
extends Object
implements Serializable
The AS400 class represents an AS/400 sign-on.

If running from an AS/400 to another AS/400 or to itself, the system name, user ID, and password do not need to be supplied. These values default to the local system. For the system name, the key word localhost can be used to specify the local AS/400. For the user ID and password, *current can be used.

If running from a non-AS/400 to an AS/400, the system name, user ID, and password need to be supplied. If not supplied, the first open request associated with an AS400 object will prompt the workstation user. Subsequent opens associated with the same AS400 object will not prompt the workstation user. Key words localhost and *current will not work when running from a non-AS/400 system.

For example:

AS400 as400 = new AS400();
as400.connectService(AS400.DATAQUEUE);   // this causes a password prompt
..
as400.connectService(AS400.FILE);        // this does not cause a prompt


Variable Index

 o COMMAND
Constant indicating the Command AS/400 service.
 o DATABASE
Constant indicating the Database AS/400 service.
 o DATAQUEUE
Constant indicating the Dataqueue AS/400 service.
 o FILE
Constant indicating the File AS/400 service.
 o PRINT
Constant indicating the Print AS/400 service.
 o RECORDACCESS
Constant indicating the Record Access AS/400 service.

Constructor Index

 o AS400()
Constructs an AS400 object.
 o AS400(AS400)
Constructs an AS400 object.
 o AS400(String)
Constructs an AS400 object.
 o AS400(String, String)
Constructs an AS400 object.
 o AS400(String, String, String)
Constructs an AS400 object.

Method Index

 o addConnectionListener(ConnectionListener)
Adds a listener to the event list.
 o addPasswordCacheEntry(String, String, String)
Validates the user ID and password against the system, and if successful, adds the information to the password cache.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a property changed listener to the list.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a listener to be notified when the value of any constrained property is changed.
 o changePassword(String, String)
Changes the password on the AS/400.
 o clearPasswordCache()
Clears the password cache for all systems within this Java virtual machine.
 o clearPasswordCache(String)
Clears all the passwords that are cached for the given AS/400 within this Java virtual machine.
 o connectService(int)
Connects to an AS/400 service on this AS/400.
 o disconnectAllServices()
Disconnects from the AS/400.
 o disconnectService(int)
Disconnects the service from the AS/400.
 o finalize()
Cleans up all connections.
 o generateVRM(int, int, int)
Generates a VRM from a version, release, and modification.
 o getCcsid()
Returns the CCSID for this AS/400.
 o getDefaultUser(String)
Returns the default user ID for this AS/400.
 o getModification()
Returns the modification level of the AS/400.
 o getPasswordExpirationDate()
Returns the password expiration date for the signed on user.
 o getPasswordExpirationWarningDays()
Returns the number of days before password expiration to start warning the user.
 o getPreviousSignonDate()
Returns the date of the last successful sign-on.
 o getRelease()
Returns the release of the AS/400.
 o getSignonDate()
Returns the date for the current sign-on.
 o getSystemName()
Returns the name of the system.
 o getUserId()
Returns the user ID.
 o getVersion()
Returns the version of the AS/400.
 o getVRM()
Returns the version, release, and modification level for the AS/400.
 o initializeConverter(int)
Initialize conversion table for the given CCSID.
 o isConnected()
Indicates if any service is currently connected through this AS400 object.
 o isConnected(int)
Indicates if a service is currently connected through this AS400 object.
 o isGuiAvailable()
Returns the sign-on prompting mode for this AS400 object.
 o isLocal()
Indicates if this AS400 object is representing the system you are currently running on.
 o isMustUseSockets()
When your Java program runs on a V4R3 or later AS/400, the Toolbox record-level database access, data queues, and user space classes access data through a call to an AS/400 API instead of making a socket call to a server.
 o isUseDefaultUser()
Indicates if the default user should be used by this AS400 object.
 o isUsePasswordCache()
Indicates if password cache is being used by this AS400 object.
 o removeConnectionListener(ConnectionListener)
Removes a listener from the listener list.
 o removeDefaultUser(String)
Removes the default user for the given AS/400.
 o removePasswordCacheEntry(String, String)
Removes the password entry associated with this user and AS/400.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a property changed listener from the listener list.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes a listener from the veto list.
 o setCcsid(int)
Sets the CCSID to be used for this AS/400.
 o setDefaultUser(String, String)
Sets the default user for a given AS/400.
 o setGuiAvailable(boolean)
Sets the environment you are running in.
 o setMustUseSockets(boolean)
When your Java program runs on a V4R3 or later AS/400, the Toolbox record-level database access, data queues, and user space classes access data through a call to an AS/400 API instead of making a socket call to a server.
 o setPassword(String)
Sets the password for this AS400 object.
 o setPasswordExpirationWarningDays(int)
Sets the number of days before password expiration to warn the user.
 o setSystemName(String)
Sets the system name for this AS400 object.
 o setUseDefaultUser(boolean)
Sets the indicator for whether the default user is used.
 o setUsePasswordCache(boolean)
Sets the indicator for whether the password cache is used.
 o setUserId(String)
Sets the user ID for this AS400 object.
 o toString()
Returns the text representation of this AS400 object.
 o validateSignon()
Validates the user ID and password for this AS/400 but does not add to the signed-on list.
 o validateSignon(String)
Validates the user ID and password for this AS/400 but does not add to the signed-on list.
 o validateSignon(String, String)
Validates the user ID and password for this AS/400 but does not add to the signed-on list.

Variables

 o FILE
 public static final int FILE
Constant indicating the File AS/400 service.

 o PRINT
 public static final int PRINT
Constant indicating the Print AS/400 service.

 o COMMAND
 public static final int COMMAND
Constant indicating the Command AS/400 service.

 o DATAQUEUE
 public static final int DATAQUEUE
Constant indicating the Dataqueue AS/400 service.

 o DATABASE
 public static final int DATABASE
Constant indicating the Database AS/400 service.

 o RECORDACCESS
 public static final int RECORDACCESS
Constant indicating the Record Access AS/400 service.

Constructors

 o AS400
 public AS400()
Constructs an AS400 object.

If running from an AS/400 to another AS/400 or to itself, the target is the local system. This has the same effect as using localhost for the system name, *current for the user ID, and *current for the password.

If running from a non-AS/400 to an AS/400, a sign-on prompt is displayed. The user is then able to specify the system, user Id, and password.

 o AS400
 public AS400(String systemName)
Constructs an AS400 object. It uses the specified system.

If running from an AS/400 to another AS/400 or to itself, and the specified system is the system from which we are running, the user ID and password of the current job is used.

If running from a non-AS/400 to an AS/400, the user is prompted for the user ID and password if a default user has not been established for this AS/400.

Parameters:
systemName - The name of the AS/400. Use localhost to access data locally on the AS/400.
 o AS400
 public AS400(String systemName,
              String userId)
Constructs an AS400 object. It uses the specified system and user ID. When the sign-on prompt is displayed, the user is able to specify the password. Note that the user ID may be overridden.

Parameters:
systemName - The name of the AS/400. Use localhost to access data locally on the AS/400.
userId - The user ID to use to connect to the system. If running from an AS/400, *current may be used to specify the current user ID.
 o AS400
 public AS400(String systemName,
              String userId,
              String password)
Constructs an AS400 object. It uses the specified system, user ID, and password. No sign-on prompt is displayed unless the sign-on fails.

Parameters:
systemName - The name of the AS/400. Use localhost to access data locally on the AS/400.
userId - The user ID to use to connect to the system. If running from an AS/400, *current may be used to specify the current user ID.
password - The password to use to connect to the system. If running from an AS/400, *current may be used to specify the current user ID.
 o AS400
 public AS400(AS400 systemObject)
Constructs an AS400 object. It uses the same system and user ID. This does not create a clone. The new AS400 object has the same behavior, but results in a new set of socket connections.

Parameters:
systemObject - A previously instantiated AS400 object.

Methods

 o addPasswordCacheEntry
 public static void addPasswordCacheEntry(String systemName,
                                          String userId,
                                          String password) throws UnknownHostException, IOException, AS400SecurityException
Validates the user ID and password against the system, and if successful, adds the information to the password cache.

Parameters:
systemName - The name of the system.
userId - The user ID.
password - The password.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 server cannot be started.
 o addConnectionListener
 public synchronized void addConnectionListener(ConnectionListener listener)
Adds a listener to the event list.

Parameters:
listener - The listener object.
 o addPropertyChangeListener
 public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Adds a property changed listener to the list.

Parameters:
listener - The listener to add.
 o addVetoableChangeListener
 public void addVetoableChangeListener(VetoableChangeListener listener)
Adds a listener to be notified when the value of any constrained property is changed. The vetoableChange method will be called.

Parameters:
listener - The VetoableChangeListener.
See Also:
removeVetoableChangeListener
 o changePassword
 public void changePassword(String oldPassword,
                            String newPassword) throws AS400SecurityException, IOException, UnknownHostException, ExtendedIllegalStateException
Changes the password on the AS/400.

Parameters:
oldpassword - The old password.
newpassword - The new password.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o clearPasswordCache
 public static void clearPasswordCache()
Clears the password cache for all systems within this Java virtual machine.

 o clearPasswordCache
 public static void clearPasswordCache(String system)
Clears all the passwords that are cached for the given AS/400 within this Java virtual machine.

Parameters:
system - The system name for the AS/400.
 o connectService
 public void connectService(int service) throws ServerStartupException, AS400SecurityException, IOException, UnknownHostException
Connects to an AS/400 service on this AS/400. Security is validated and a connection is established to the AS/400.

Services typically connect implicitly; therefore, this method does not have to be called to use an AS/400 service. This method can be used to control when the connection is established.
Valid services are:
FILE - integrated file system file classes
COMMAND - command and program call classes
PRINT - print classes
DATAQUEUE - data queue classes
RECORDACCESS - record level access classes

Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: ServerStartupException
If the AS/400 server cannot be started.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o disconnectAllServices
 public void disconnectAllServices()
Disconnects from the AS/400. All socket connections associated with this AS400 object will be closed.

 o disconnectService
 public void disconnectService(int service)
Disconnects the service from the AS/400. All socket connections associated with this service and this AS400 object will be closed.

Parameters:
service - The name of the service.
Valid services are:
FILE - integrated file system file classes
COMMAND - command and program call classes
PRINT - print classes
DATAQUEUE - data queue classes
RECORDACCESS - record level access classes
 o finalize
 protected void finalize() throws Throwable
Cleans up all connections.

Throws: Throwable
If an error occured during cleanup.
Overrides:
finalize in class Object
 o generateVRM
 public static int generateVRM(int version,
                               int release,
                               int modification)
Generates a VRM from a version, release, and modification. This can then be used to compare against the VRM returned by getVRM().

Parameters:
version - The version.
release - The release.
modification - The modification level.
Returns:
The generated VRM.
 o getCcsid
 public int getCcsid()
Returns the CCSID for this AS/400. The CCSID returned either is the one retrieved from the AS/400 based on the user profile or is set by the setCcsid() method.

Returns:
The CCSID to use for this AS/400.
 o getDefaultUser
 public static String getDefaultUser(String systemName) throws UnknownHostException
Returns the default user ID for this AS/400. The default user ID is the last user ID that is currently connected to this AS/400. This user ID is used to connect to the AS/400 if a user ID was not used to construct this AS400 object.

Parameters:
systemName - The name of the AS/400.
Returns:
The default user ID for this AS/400. A null is returned if there is not a default user.
 o getModification
 public int getModification() throws UnknownHostException, IOException, AS400SecurityException
Returns the modification level of the AS/400. The modification level returned is the modification level of the sign-on server and may not match the OS/400 program.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The modification level of the AS/400. For example, version 4, release 1, modification level 2 returns 2.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getPasswordExpirationDate
 public GregorianCalendar getPasswordExpirationDate() throws UnknownHostException, IOException, AS400SecurityException
Returns the password expiration date for the signed on user.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The password expiration date.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getPasswordExpirationWarningDays
 public static int getPasswordExpirationWarningDays()
Returns the number of days before password expiration to start warning the user.

Returns:
The number of days before expiration to warn the user.
 o getPreviousSignonDate
 public GregorianCalendar getPreviousSignonDate() throws UnknownHostException, IOException, AS400SecurityException
Returns the date of the last successful sign-on.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The date of the last successful sign-on.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getRelease
 public int getRelease() throws UnknownHostException, IOException, AS400SecurityException
Returns the release of the AS/400. The release returned is the release of the sign-on server and may not match the release of the OS/400 program.

A connection is required to the AS/400 in order to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The release of the AS/400. For example, version 4, release 1, modification level 0, returns 1.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getSignonDate
 public GregorianCalendar getSignonDate() throws UnknownHostException, IOException, AS400SecurityException
Returns the date for the current sign-on.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The date for the current sign-on.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getSystemName
 public String getSystemName()
Returns the name of the system. The system name is provided on the constructor or may have been provided by the user at the sign-on prompt.

Returns:
The name of the AS/400. It will be null if not set.
 o getUserId
 public String getUserId()
Returns the user ID. The user ID returned may be set as a result of the constructor, or it may be what the user typed in at the sign-on prompt.

Returns:
The user ID. It will be null if not set.
 o getVersion
 public int getVersion() throws UnknownHostException, IOException, AS400SecurityException
Returns the version of the AS/400.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The version of the AS/400. For example, version 4 returns 4.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o getVRM
 public int getVRM() throws UnknownHostException, IOException, AS400SecurityException
Returns the version, release, and modification level for the AS/400.

A connection is required to the AS/400 to retrieve this information. If a connection has not been established, one is created to retrieve the system information.

Returns:
The high 16-bit is the version, the next 8 bits is the release, and the low 8 bits is the modification level. Thus Version 4, release 1, modification level 0, returns 0x00040100.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o initializeConverter
 public void initializeConverter(int ccsid) throws UnsupportedEncodingException
Initialize conversion table for the given CCSID. The default EBCDIC to unicode converters are not shipped with some browsers. This method can be used to check and download converters if they are not available locally.

Parameters:
ccsid - the CCSID for the conversion table to initialize.
 o isConnected
 public boolean isConnected()
Indicates if any service is currently connected through this AS400 object.

Returns:
true if any service is connected; false otherwise.
 o isConnected
 public boolean isConnected(int service)
Indicates if a service is currently connected through this AS400 object.

A service is connected if connectService() has been called, or an implicit connect has been done by the service, and disconnectService() or disconnectAllServices() has not been called.
Valid services are:
FILE - integrated file system file classes
COMMAND - command and program call classes
PRINT - print classes
DATAQUEUE - data queue classes
RECORDACCESS - record-level access

Returns:
true if service is connected; false otherwise.
 o isGuiAvailable
 public boolean isGuiAvailable()
Returns the sign-on prompting mode for this AS400 object. If true, then messages are displayed. If warnings or errors are displayed, then sign-on and change password dialogs are displayed if needed. If false, warnings and errors result in exceptions, and password dialogs are not displayed. The caller has to provide the user ID and password.

Returns:
true if using GUI; false otherwise.
 o isLocal
 public boolean isLocal()
Indicates if this AS400 object is representing the system you are currently running on.

Returns:
true if you are running on this AS/400; false otherwise.
 o isMustUseSockets
 public boolean isMustUseSockets()
When your Java program runs on a V4R3 or later AS/400, the Toolbox record-level database access, data queues, and user space classes access data through a call to an AS/400 API instead of making a socket call to a server. There are minor differences in the behavior of the classes when they use API calls instead of socket calls. If your program is affected by these differences you can check whether the Toolbox classes will use socket calls instead of API calls by using this method.

 o isUsePasswordCache
 public boolean isUsePasswordCache()
Indicates if password cache is being used by this AS400 object. If password cache is not used, the user will always be prompted for password if one was not provided in the constructor.

Returns:
true if password cache is being used; false otherwise.
 o isUseDefaultUser
 public boolean isUseDefaultUser()
Indicates if the default user should be used by this AS400 object. If default user is not used and a user ID was not specified on the constructor, then the user will be prompted for a user ID.

Returns:
true if default user should be used; false otherwise.
 o removeConnectionListener
 public synchronized void removeConnectionListener(ConnectionListener listener)
Removes a listener from the listener list.

Parameters:
listener - The listener to remove.
 o removePropertyChangeListener
 public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Removes a property changed listener from the listener list.

Parameters:
listener - The listener to remove.
 o removeVetoableChangeListener
 public void removeVetoableChangeListener(VetoableChangeListener listener)
Removes a listener from the veto list. If the listener is not on the list, do nothing.

Parameters:
listener - The VetoableChangeListener.
See Also:
addVetoableChangeListener
 o removeDefaultUser
 public static void removeDefaultUser(String systemName)
Removes the default user for the given AS/400.

Parameters:
systemName - The name of the AS/400.
 o removePasswordCacheEntry
 public static void removePasswordCacheEntry(String system,
                                             String user)
Removes the password entry associated with this user and AS/400. Only applies within this Java virtual machine.

Parameters:
system - The system name for the AS/400.
user - The user ID associated with the cache entry.
 o setCcsid
 public void setCcsid(int ccsid) throws PropertyVetoException
Sets the CCSID to be used for this AS/400.

Parameters:
ccsid - The CCSID to use for this AS/400.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o setDefaultUser
 public static boolean setDefaultUser(String systemName,
                                      String user)
Sets the default user for a given AS/400. The default user is the user ID that is used to connect if a user ID is not provided for that AS/400. There can be only one default user per AS/400. Once the default user is set, it cannot be overridden. To change the default user, the caller should remove the default user and then set it.

Parameters:
systemName - The name of the AS/400.
user - The user ID.
Returns:
true if default user has been set; false otherwise.
 o setGuiAvailable
 public void setGuiAvailable(boolean guiAvailable) throws PropertyVetoException
Sets the environment you are running in. If guiAvailable is set to true, then prompting may occur during sign-on to display error conditions, to prompt for additional information, or to prompt for change password. If guiAvailable is set to false, then these conditions will result in return codes and exceptions. Applications that are running as server applications or want to control the sign-on user interface may want to run with prompting mode set to false. The AS400 object is constructed with prompting mode set to true by default.

Parameters:
guiAvailable - true to prompt; otherwise false.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o setMustUseSockets
 public void setMustUseSockets(boolean mustUseSockets)
When your Java program runs on a V4R3 or later AS/400, the Toolbox record-level database access, data queues, and user space classes access data through a call to an AS/400 API instead of making a socket call to a server. There are minor differences in the behavior of the classes when they use API calls instead of socket calls. If your program is affected by these differences you can force the Toolbox classes to use socket calls instead of API calls by using this method.

 o setPassword
 public void setPassword(String password)
Sets the password for this AS400 object. The password cannot be changed once a connection to the AS/400 has been established.

Parameters:
password - The password with which to connect to the AS/400.
 o setPasswordExpirationWarningDays
 public static void setPasswordExpirationWarningDays(int days)
Sets the number of days before password expiration to warn the user.

Parameters:
days - The number of days before expiration to start the warning. Set to -1 to turn off warning.
 o setSystemName
 public void setSystemName(String systemName) throws PropertyVetoException
Sets the system name for this AS400 object. The system name cannot be changed once a connection to the AS/400 has been established.

Parameters:
systemName - The system name with which to connect to the AS/400.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o setUseDefaultUser
 public void setUseDefaultUser(boolean useDefaultUser) throws PropertyVetoException
Sets the indicator for whether the default user is used. The default user is used if a system name is provided, but a user ID is not. If a default user is set for that system, then the default user is used.

Parameters:
useDefaultUser - The value indicating if the default user should be used. Set to true if default user should be used; false otherwise.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o setUsePasswordCache
 public void setUsePasswordCache(boolean useCache) throws PropertyVetoException
Sets the indicator for whether the password cache is used. If password cache is used, then the user would only have to enter password once within a Java virtual machine. The default is to use the cache.

Parameters:
useCache - The value indicating whether the password cache should be used. Set to true to use the password cache; false otherwise.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o setUserId
 public void setUserId(String user) throws PropertyVetoException
Sets the user ID for this AS400 object. The user ID cannot be changed once a connection to the AS/400 has been established.

Parameters:
user - The user ID with which to connect to the AS/400.
Throws: PropertyVetoException
If any of the registered listeners vetos the property change.
 o toString
 public String toString()
Returns the text representation of this AS400 object.

Returns:
The string representing this AS400 object.
Overrides:
toString in class Object
 o validateSignon
 public boolean validateSignon() throws UnknownHostException, IOException, AS400SecurityException, ExtendedIllegalStateException
Validates the user ID and password for this AS/400 but does not add to the signed-on list. The System name, user ID, and password need to be set through the constructor prior to calling this method.

Returns:
true if successful; false otherwise.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o validateSignon
 public boolean validateSignon(String password) throws UnknownHostException, IOException, AS400SecurityException, ExtendedIllegalStateException
Validates the user ID and password for this AS/400 but does not add to the signed-on list.

Parameters:
String - Password to use for sign-on. The user ID and system name need to be set before calling this method.
Returns:
true if successful; false otherwise.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.
 o validateSignon
 public boolean validateSignon(String userId,
                               String password) throws UnknownHostException, IOException, AS400SecurityException, ExtendedIllegalStateException
Validates the user ID and password for this AS/400 but does not add to the signed-on list. The system name needs to be set prior to calling this method.

Parameters:
String - The user ID to validate.
String - The password to validate.
Returns:
true if successful; false otherwise.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: UnknownHostException
If the AS/400 system cannot be located.

All Packages  Class Hierarchy  This Package  Previous  Next  Index