@Override public SSLContext getSslContext() { checkClosed(); if (secConfig.getSslContext() != null) { return secConfig.getSslContext(); } else if (secConfig.getTlsClientParams().getTrustManagers() != null) { try { return SSLUtils.getSSLContext(secConfig.getTlsClientParams()); } catch (Exception ex) { throw new ProcessingException(ex); } } else { return null; } }
@Override public HostnameVerifier getHostnameVerifier() { checkClosed(); return secConfig.getTlsClientParams().getHostnameVerifier(); }