Skip to content

Commit

Permalink
Merge pull request #1209 from smillidge/PAYARA-1214
Browse files Browse the repository at this point in the history
PAYARA-1214 restrict acceptable JMX credential types
  • Loading branch information
Pandrex247 committed Dec 5, 2016
2 parents cfe6520 + 43c56a3 commit 1cc2f12
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -37,10 +37,10 @@
* only if the new code is made subject to such option by the copyright
* holder.
*/
// Portions Copyright [2016] [Payara Foundation and/or its affiliates]

package org.glassfish.admin.mbeanserver;

import org.glassfish.grizzly.config.dom.Ssl;
import org.glassfish.hk2.api.ServiceLocator;

import javax.management.MBeanServer;
Expand Down Expand Up @@ -120,6 +120,10 @@ private JMXConnectorServer startJMXMPConnectorServer(final int port)
final Map<String, Object> env = new HashMap<String, Object>();
env.put("jmx.remote.protocol.provider.pkgs", "com.sun.jmx.remote.protocol");
env.put("jmx.remote.protocol.provider.class.loader", this.getClass().getClassLoader());
env.put("jmx.remote.rmi.server.credential.types", new String[] {
String[].class.getName(),
String.class.getName() });

JMXAuthenticator authenticator = getAccessController();
if (authenticator != null)
{
Expand Down

0 comments on commit 1cc2f12

Please sign in to comment.