@Override protected synchronized HttpConnectorAddress getHttpConnectorAddress(String host, int port, boolean shouldUseSecure) { /* * Always use secure communication to another server process. * Return a connector address that uses a cert to authenticate this * process as a client only if a cert, rather than an admin username * and password, is used for process-to-process authentication. */ try { final String certAlias = SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin) ? null : getCertAlias(); return new HttpConnectorAddress(host, port, certAlias == null ? null : sslUtils().getAdminSocketFactory(certAlias, SSL_SOCKET_PROTOCOL)); } catch (Exception ex) { throw new RuntimeException(ex); } }
@Override protected synchronized HttpConnectorAddress getHttpConnectorAddress(String host, int port, boolean shouldUseSecure) { /* * Always use secure communication to another server process. * Return a connector address that uses a cert to authenticate this * process as a client only if a cert, rather than an admin username * and password, is used for process-to-process authentication. */ try { final String certAlias = SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin) ? null : getCertAlias(); return new HttpConnectorAddress(host, port, certAlias == null ? null : sslUtils().getAdminSocketFactory(certAlias, SSL_SOCKET_PROTOCOL)); } catch (Exception ex) { throw new RuntimeException(ex); } }
@Override protected synchronized HttpConnectorAddress getHttpConnectorAddress(String host, int port, boolean shouldUseSecure) { /* * Return a connector address that uses a cert to authenticate this * process as a client only if secure admin is enabled and if a cert, * rather than an admin username and password, are used for process-to- * process authentication. */ if (SecureAdmin.Util.isEnabled(secureAdmin) && ! SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin)) { return new HttpConnectorAddress(host, port, sslUtils().getAdminSocketFactory(getCertAlias(), SSL_SOCKET_PROTOCOL)); } else { return super.getHttpConnectorAddress(host, port, shouldUseSecure); } }