code: public JMXConnector getJMXConnector(String controllerHost, int controllerPort, String user, String password) throws NoSuchAlgorithmException, KeyManagementException, MalformedURLException, IOException {
          HashMap<String, Object> environment = createJMXEnvironment(user, password, setUpSSLContext());
          JMXConnector connector = getMBeanServerConnection(controllerHost, controllerPort, environment);
          connector.connect();
          return connector;
      }
docs: Returns a connected JMXConnector.
  
  @param controllerHost
  @param controllerPort
  @param user
  @param password
  @return
  @throws NoSuchAlgorithmException
  @throws KeyManagementException
  @throws MalformedURLException
  @throws IOException