com.ibm.jtopenlite
Class SignonConnection
java.lang.Object
com.ibm.jtopenlite.HostServerConnection
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).
| Methods inherited from class com.ibm.jtopenlite.HostServerConnection |
close, connect, finalize, getEncryptedPassword, getInfo, getJobName, getUser, isClosed, isDatastreamDebug, isDefaultDatastreamDebug, setDatastreamDebug, writePadEBCDIC, writePadEBCDIC10, writeStringToUnicodeBytes |
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
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