public static ManagementHttpServer create(InetSocketAddress bindAddress, InetSocketAddress secureBindAddress, int backlog, ModelControllerClient modelControllerClient, Executor executor, SecurityRealm securityRealm, ConsoleMode consoleMode, String consoleSlot)
throws IOException {
Map<String, String> configuration = new HashMap<String, String>(1);
configuration.put("sun.net.httpserver.maxReqTime", "15"); // HTTP Server to close connections if initial request not received within 15 seconds.
Authenticator auth = null;
final CertAuth certAuthMode;
if (securityRealm != null) {
DomainCallbackHandler callbackHandler = securityRealm.getCallbackHandler();
Class<Callback>[] supportedCallbacks = callbackHandler.getSupportedCallbacks();