com.ibm.jtopenlite
Class SignonConnection

java.lang.Object
  extended by com.ibm.jtopenlite.HostServerConnection
      extended by com.ibm.jtopenlite.SignonConnection
All Implemented Interfaces:
Connection

public class SignonConnection
extends HostServerConnection

Represents a TCP/IP socket connection to the System i Signon host server (QSYSWRK/QZSOSIGN prestart jobs).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.jtopenlite.HostServerConnection
HostServerConnection.HostInputStream, HostServerConnection.HostOutputStream
 
Field Summary
static int DEFAULT_SIGNON_SERVER_PORT
          The default TCP/IP port the Signon host server listens on.
 
Fields inherited from class com.ibm.jtopenlite.HostServerConnection
in_, out_
 
Method Summary
 void authenticate(String user, String password)
          Issues a request to the Signon host server to authenticate the specified user and password.
static SignonConnection getConnection(String system, String user, String password)
          Connects to the Signon host server on the default port and authenticates the specified user.
static SignonConnection getConnection(String system, String user, String password, int signonPort)
          Connects to the Signon host server on the specified port and authenticates the specified user.
protected  void sendEndJobRequest()
           
 
Methods inherited from class com.ibm.jtopenlite.HostServerConnection
close, connect, finalize, getEncryptedPassword, getInfo, getJobName, getUser, isClosed, isDatastreamDebug, isDefaultDatastreamDebug, setDatastreamDebug, writePadEBCDIC, writePadEBCDIC10, writeStringToUnicodeBytes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIGNON_SERVER_PORT

public static final int DEFAULT_SIGNON_SERVER_PORT
The default TCP/IP port the Signon host server listens on. If your system has been configured to use a different port, use the PortMapper class to determine the port.

See Also:
Constant Field Values
Method Detail

sendEndJobRequest

protected void sendEndJobRequest()
                          throws IOException
Specified by:
sendEndJobRequest in class HostServerConnection
Throws:
IOException

authenticate

public void authenticate(String user,
                         String password)
                  throws IOException
Issues a request to the Signon host server to authenticate the specified user and password.

Throws:
IOException

getConnection

public static SignonConnection getConnection(String system,
                                             String user,
                                             String password)
                                      throws IOException
Connects to the Signon host server on the default port and authenticates the specified user.

Throws:
IOException

getConnection

public static SignonConnection getConnection(String system,
                                             String user,
                                             String password,
                                             int signonPort)
                                      throws IOException
Connects to the Signon host server on the specified port and authenticates the specified user.

Throws:
IOException