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).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.jtopenlite.HostServerConnection
HostServerConnection.HostInputStream, HostServerConnection.HostOutputStream
-
-
Field Summary
Fields Modifier and Type Field and Description static int
DEFAULT_SIGNON_SERVER_PORT
The default TCP/IP port the Signon host server listens on.static int
DEFAULT_SSL_SIGNON_SERVER_PORT
-
Fields inherited from class com.ibm.jtopenlite.HostServerConnection
in_, out_
-
-
Method Summary
Methods Modifier and Type Method and Description void
authenticate(java.lang.String user, java.lang.String password)
Issues a request to the Signon host server to authenticate the specified user and password.static SignonConnection
getConnection(boolean isSSL, java.lang.String system, java.lang.String user, java.lang.String password)
Connects to the Signon host server on the default port and authenticates the specified user.static SignonConnection
getConnection(boolean isSSL, java.lang.String system, java.lang.String user, java.lang.String password, int signonPort)
Connects to the Signon host server on the specified port and authenticates the specified user.static SignonConnection
getConnection(java.lang.String system, java.lang.String user, java.lang.String password)
Connects to the Signon host server on the default port and authenticates the specified user.static SignonConnection
getConnection(java.lang.String system, java.lang.String user, java.lang.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, getBytesReceived, getBytesSent, getEncryptedPassword, getInfo, getJobName, getUser, isClosed, isDatastreamDebug, isDefaultDatastreamDebug, setDatastreamDebug, setDefaultDatastreamDebug, writePadEBCDIC, writePadEBCDIC10, writeStringToUnicodeBytes
-
-
-
-
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 thePortMapper
class to determine the port.- See Also:
- Constant Field Values
-
DEFAULT_SSL_SIGNON_SERVER_PORT
public static final int DEFAULT_SSL_SIGNON_SERVER_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendEndJobRequest
protected void sendEndJobRequest() throws java.io.IOException
- Specified by:
sendEndJobRequest
in classHostServerConnection
- Throws:
java.io.IOException
-
authenticate
public void authenticate(java.lang.String user, java.lang.String password) throws java.io.IOException
Issues a request to the Signon host server to authenticate the specified user and password.- Throws:
java.io.IOException
-
getConnection
public static SignonConnection getConnection(java.lang.String system, java.lang.String user, java.lang.String password) throws java.io.IOException
Connects to the Signon host server on the default port and authenticates the specified user.- Throws:
java.io.IOException
-
getConnection
public static SignonConnection getConnection(boolean isSSL, java.lang.String system, java.lang.String user, java.lang.String password) throws java.io.IOException
Connects to the Signon host server on the default port and authenticates the specified user.- Throws:
java.io.IOException
-
getConnection
public static SignonConnection getConnection(java.lang.String system, java.lang.String user, java.lang.String password, int signonPort) throws java.io.IOException
Connects to the Signon host server on the specified port and authenticates the specified user.- Throws:
java.io.IOException
-
getConnection
public static SignonConnection getConnection(boolean isSSL, java.lang.String system, java.lang.String user, java.lang.String password, int signonPort) throws java.io.IOException
Connects to the Signon host server on the specified port and authenticates the specified user.- Throws:
java.io.IOException
-
-