Ejemplo n.º 1
0
 public void setEnableClientCert(boolean enabled) {
   if (enabled) {
     clientSSLSockFactory = clientSSLSockCertFactory;
     logger.info("ClientCert enabled using: " + sslContextManager.getDefaultKey());
   } else {
     clientSSLSockFactory = getClientSocketFactory(SSL);
     logger.info("ClientCert disabled");
   }
 }
Ejemplo n.º 2
0
  public void setActiveCertificate() {

    SSLContext sslcont = sslContextManager.getSSLContext(sslContextManager.getDefaultKey());
    clientSSLSockCertFactory = sslcont.getSocketFactory();
    logger.info("ActiveCertificate set to: " + sslContextManager.getDefaultKey());
  }