env.put("jmx.remote.sasl.callback.handler", handler);
}
else if (connectionType.equalsIgnoreCase("JMXMP_PLAIN"))
{
Security.addProvider(new SaslProvider());
CallbackHandler handler = new UserPasswordCallbackHandler(userName, password);
env.put("jmx.remote.profiles", Constants.SASL_PLAIN);
env.put("jmx.remote.sasl.callback.handler", handler);
}
else
{