private SSLContext createAndConfigureSSLContext() throws GeneralSecurityException, IOException {
  SSLContext newSSLContext=getSSLContextInstance();
  KeyManager[] keyManagers=getKeyManagers();
  TrustManager[] trustManagers=getTrustManagers();
  newSSLContext.init(keyManagers,trustManagers,null);
  return newSSLContext;
}

private SSLContext createAndConfigureSSLContext ( ) throws GeneralSecurityException , IOException { SSLContext newSSLContext = getSSLContextInstance ( ) ; KeyManager [ ] keyManagers = getKeyManagers ( ) ; TrustManager [ ] trustManagers = getTrustManagers ( ) ; newSSLContext . init ( keyManagers , trustManagers , null ) ; return newSSLContext ; }
creates & configures the sslcontext when ssl is enabled .
