final String address = connConfig.getAddress(); final int port = Integer.parseInt(connConfig.getPort()); final boolean securityEnabled = Boolean.parseBoolean(connConfig.getSecurityEnabled()); final Ssl ssl = connConfig.getSsl();
private static String toString(final JmxConnector c) { return "JmxConnector config: { name = " + c.getName() + ", Protocol = " + c.getProtocol() + ", Address = " + c.getAddress() + ", Port = " + c.getPort() + ", AcceptAll = " + c.getAcceptAll() + ", AuthRealmName = " + c.getAuthRealmName() + ", SecurityEnabled = " + c.getSecurityEnabled() + "}"; }
/** * Returns if the SystemJMXConnector is secure or not * * @param instance * @return */ public boolean isSecureJMX(String instance) { String isSecure = "false"; if (domain.getServerNamed(instance) != null) { if (domain.getServerNamed(instance).getConfig().getAdminService().getSystemJmxConnector() != null) { isSecure = domain.getServerNamed(instance).getConfig().getAdminService().getSystemJmxConnector().getSecurityEnabled(); } } return Boolean.parseBoolean(isSecure); } }