From 9329e61380e93fb13a512e3684f528296c195d06 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 25 Aug 2016 16:10:33 +0200 Subject: [PATCH] SONAR-8012 Restore support of IBM JVM in WS client --- .../java/org/sonarqube/ws/client/HttpConnector.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpConnector.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpConnector.java index d063fe9383b..0ffe844c408 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpConnector.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/HttpConnector.java @@ -25,7 +25,6 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.CheckForNull; import javax.annotation.Nullable; -import javax.net.ssl.SSLSocketFactory; import okhttp3.Call; import okhttp3.ConnectionSpec; import okhttp3.Credentials; @@ -101,19 +100,10 @@ public class HttpConnector implements WsConnector { .supportsTlsExtensions(true) .build(); okHttpClientBuilder.connectionSpecs(asList(tls, ConnectionSpec.CLEARTEXT)); - okHttpClientBuilder.sslSocketFactory(createSslSocketFactory()); return okHttpClientBuilder.build(); } - private static SSLSocketFactory createSslSocketFactory() { - try { - return (SSLSocketFactory) SSLSocketFactory.getDefault(); - } catch (Exception e) { - throw new IllegalStateException("Fail to init TLS context", e); - } - } - @Override public String baseUrl() { return baseUrl.url().toExternalForm(); -- 2.39.5