public static TTransport getSSLSocket(String host, int port, int loginTimeout, TSSLTransportParameters params,
      int maxMessageSize) throws TTransportException {
    // The underlying SSLSocket object is bound to host:port with the given SO_TIMEOUT and
    // SSLContext created with the given params
    TSocket tSSLSocket = null;
    if (params != null) {
      tSSLSocket = TSSLTransportFactory.getClientSocket(host, port, loginTimeout, params);
    } else {
      tSSLSocket = TSSLTransportFactory.getClientSocket(host, port, loginTimeout);
    }
    return getSSLSocketWithHttps(tSSLSocket, maxMessageSize);
  }
Create a TSocket for the provided host and port with specified loginTimeout and maxMessageSize.
will default to Thrift library default.
@param host Host to connect to.
@param port Port to connect to.
@param loginTimeout Socket timeout (0 means no timeout).
@param maxMessageSize Size in bytes for max allowable Thrift message size, less than or equal to 0
                      results in using the Thrift library default.
@return TTransport TSocket for host/port
common/src/java/org/apache/hadoop/hive/common/auth/HiveAuthUtils.java