From 8e7529cf13c948141f9cc75fefb2571934fcefe0 Mon Sep 17 00:00:00 2001 From: Subrahmanyam Mandavilli Date: Thu, 11 Feb 2016 10:51:28 +0530 Subject: [PATCH] Removing unwanted spaces --- src/Tools/vmOpsTool/SkipCACheck.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Tools/vmOpsTool/SkipCACheck.java b/src/Tools/vmOpsTool/SkipCACheck.java index 736cb73..a7b7014 100644 --- a/src/Tools/vmOpsTool/SkipCACheck.java +++ b/src/Tools/vmOpsTool/SkipCACheck.java @@ -15,14 +15,11 @@ public class SkipCACheck { TrustManager[] trustAllCerts = new TrustManager[1]; TrustManager trustManager = new TrustAllTrustManager(); trustAllCerts[0] = trustManager; + SSLContext sslContext = SSLContext.getInstance("SSL"); - SSLSessionContext serverSessionContext = sslContext.getServerSessionContext(); - - serverSessionContext.setSessionTimeout(30 * 60); sslContext.init(null, trustAllCerts, null); - setDefaultSSLSocketFactory(sslContext.getSocketFactory()); setDefaultHostnameVerifier(verifier); }