Skip to content
Snippets Groups Projects
Commit 93b0544c authored by Alan Braz's avatar Alan Braz
Browse files

remove sysout

parent 4c35815c
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -74,20 +74,13 @@ public class ElasticUtilsIBM extends ElasticUtils {
SSLContext sslContext = SSLContext.getInstance("SSL");
// set up a TrustManager that trusts everything
sslContext.init(null, new TrustManager[] { new X509TrustManager() {
sslContext.init(null, new TrustManager[] { new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
System.out.println("getAcceptedIssuers =============");
return null;
}
public void checkClientTrusted(X509Certificate[] certs,
String authType) {
System.out.println("checkClientTrusted =============");
}
public void checkServerTrusted(X509Certificate[] certs,
String authType) {
System.out.println("checkServerTrusted =============");
}
} }, new SecureRandom());
public void checkClientTrusted(X509Certificate[] certs, String authType) { }
public void checkServerTrusted(X509Certificate[] certs, String authType) { }
} }, new SecureRandom());
builder.setHttpClientConfigCallback(new HttpClientConfigCallback() {
@Override
......@@ -99,6 +92,7 @@ public class ElasticUtilsIBM extends ElasticUtils {
}
})
.setDefaultHeaders(defaultHeaders);
restHighLevelClient = new RestHighLevelClient(builder);
} catch (Exception e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment