Skip to content

Commit

Permalink
Add a credential filter pattern to JMXConnector
Browse files Browse the repository at this point in the history
Signed-off-by: kaido207 <kaido.hiroki@fujitsu.com>
  • Loading branch information
kaido207 committed Apr 28, 2023
1 parent ad39388 commit c82551b
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1,5 +1,6 @@
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -254,6 +255,7 @@ public JMXConnectorServer start() throws MalformedURLException, IOException, Unk
final Map<String, Object> env = new HashMap<String, Object>();

env.put("jmx.remote.jndi.rebind", "true");
env.put(RMIConnectorServer.CREDENTIALS_FILTER_PATTERN, String.class.getName() + ";!*");

// Provide SSL-based RMI socket factories.
env.put(RMIConnectorServer.RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTE, sslCsf);
Expand Down

0 comments on commit c82551b

Please sign in to comment.