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());
context.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), secureRandom);
    protected SSLServerSocketFactory createFactory()         throws Exception    {        SSLContext context = _provider==null?SSLContext.getInstance(_protocol):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();    }