boolean (X509Certificate @NotNull [] chain, String authType) { boolean result; try { CertificateManager.getInstance().getTrustManager().checkServerTrusted(chain, authType, ConfirmingTrustManager.CertificateConfirmationParameters.doNotAskConfirmation()); result = true; } catch (CertificateException e) { LOG.debug(e); result = false; } return result; }