code: protected SSLServerSocketFactory createFactory() 
      	throws Exception
      {
          SSLContext context;
          if (_provider == null) {
  			context = SSLContext.getInstance(_protocol);
  		} else {
  			context = SSLContext.getInstance(_protocol, _provider);
  		}
  
          KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(_algorithm);        
          KeyStore keyStore = KeyStore.getInstance(_keystoreType);
          keyStore.load(Resource.newResource(_keystore).getInputStream(), _password.toString().toCharArray());
          keyManagerFactory.init(keyStore,_keypassword.toString().toCharArray());
          
          context.init(keyManagerFactory.getKeyManagers(), null, new java.security.SecureRandom());
  
          return context.getServerSocketFactory();
      }
docs: /* ------------------------------------------------------------