public void setEnableClientCert(boolean enabled) { if (enabled) { clientSSLSockFactory = clientSSLSockCertFactory; logger.info("ClientCert enabled using: " + sslContextManager.getDefaultKey()); } else { clientSSLSockFactory = getClientSocketFactory(SSL); logger.info("ClientCert disabled"); } }
public void setActiveCertificate() { SSLContext sslcont = sslContextManager.getSSLContext(sslContextManager.getDefaultKey()); clientSSLSockCertFactory = sslcont.getSocketFactory(); logger.info("ActiveCertificate set to: " + sslContextManager.getDefaultKey()); }