com.ibm.jtopenlite

Class 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).
    • 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
      • DEFAULT_SSL_SIGNON_SERVER_PORT

        public static final int DEFAULT_SSL_SIGNON_SERVER_PORT
        See Also:
        Constant Field Values
    • Method Detail

      • 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