code: public static Object[] getAuthenticatedConnection(String host, String username,
                                                        byte[] hashedPassword, int port,
                                                        final Subject subject, ClientAuthScheme scheme,
                                                        long timeoutMillis) throws IOException {
          String service = subject == null ? "database" : Constants.KERBEROS;
          return getAuthenticatedConnection(service, host, username, hashedPassword, port, subject, scheme, null, timeoutMillis);
      }
docs: Create a connection to a Volt server and authenticate the connection.
  @param host
  @param username
  @param hashedPassword
  @param port
  @param subject
  @throws IOException
  @returns An array of objects. The first is an
  authenticated socket channel, the second. is an array of 4 longs -
  Integer hostId, Long connectionId, Long timestamp (part of instanceId), Int leaderAddress (part of instanceId).
  The last object is the build string