// Subject by whatever it returns.
JMXAuthenticator authenticator =
(JMXAuthenticator) env.get("jmx.remote.authenticator");
if (authenticator != null) {
Object[] credentials = {connectionId, subject};
subject = authenticator.authenticate(credentials);
if (mc instanceof SocketConnectionIf) {
((SocketConnectionIf)mc).setSubject(subject);
}
connectionId = mc.getConnectionId();
}