All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.SecureAS400

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

public class SecureAS400
extends AS400
The SecureAS400 class represents a secure AS/400 sign-on. Secure Sockets Layer (SSL) connections are used to provide encrypted communications. This function requires an SSL capable server at release V4R4 or later.


Constructor Index

 o SecureAS400()
Constructs a SecureAS400 object.
 o SecureAS400(AS400)
Constructs a SecureAS400 object.
 o SecureAS400(String)
Constructs a SecureAS400 object.
 o SecureAS400(String, String)
Constructs a SecureAS400 object.
 o SecureAS400(String, String, String)
Constructs a SecureAS400 object.
 o SecureAS400(String, String, String, String)
Constructs a SecureAS400 object.

Method Index

 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 addPasswordCacheEntry(String, String, String, String)
Validates the user ID and password against the system, and if successful, adds the information to the password cache.

Constructors

 o SecureAS400
 public SecureAS400()
Constructs a SecureAS400 object.

 o SecureAS400
 public SecureAS400(String systemName)
Constructs a SecureAS400 object. It uses the specified system.

Parameters:
systemName - The name of the AS/400.
 o SecureAS400
 public SecureAS400(String systemName,
                    String userId)
Constructs a SecureAS400 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.
userId - The user ID to use to connect to the system.
 o SecureAS400
 public SecureAS400(String systemName,
                    String userId,
                    String password)
Constructs a SecureAS400 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.
userId - The user ID to use to connect to the system.
password - The password to use to connect to the system.
 o SecureAS400
 public SecureAS400(String systemName,
                    String userId,
                    String password,
                    String proxyServer)
Constructs a SecureAS400 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.
userId - The user ID to use to connect to the system.
password - The password to use to connect to the system.
proxyServer - The name and port in the format serverName[:port]. If no port is specified, a default will be used.
 o SecureAS400
 public SecureAS400(AS400 systemObject)
Constructs a SecureAS400 object. It uses the same system and user ID. This does not create a clone. The new SecureAS400 object has the same behavior, but results in a new set of socket connections.

Parameters:
systemObject - A previously instantiated AS400 or SecureAS400 object.

Methods

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

Parameters:
systemName - The system name for the AS/400.
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 system cannot be located.
 o addPasswordCacheEntry
 public static void addPasswordCacheEntry(String systemName,
                                          String userId,
                                          String password,
                                          String proxyServer) throws AS400SecurityException, IOException
Validates the user ID and password against the system, and if successful, adds the information to the password cache.

Parameters:
systemName - The system name for the AS/400.
userId - The user ID.
password - The password.
proxyServerSecure - true to use a Secure Sockets Layer (SSL) connection; 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