Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
issue #580: support for configured TLS and cipherSuites : organizing …
Browse files Browse the repository at this point in the history
…variable initializers
  • Loading branch information
Menon committed Aug 22, 2017
1 parent 1a86b45 commit 97461d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,18 @@ public static EwsSSLProtocolSocketFactory build(
SSLContext sslContext = createSslContext(trustManager);

//read system properties
String[] keepAliveStrategyCopy = null;
String[] keepAliveStrategyCopy;
keepAliveStrategyCopy = split(System.getProperty("https.protocols"));
String[] targetAuthStrategyCopy = null;
String[] targetAuthStrategyCopy;
targetAuthStrategyCopy = split(System.getProperty("https.cipherSuites"));

if(null != keepAliveStrategyCopy || null != targetAuthStrategyCopy) {
if (null != keepAliveStrategyCopy || null != targetAuthStrategyCopy) {
return new EwsSSLProtocolSocketFactory(sslContext,keepAliveStrategyCopy,targetAuthStrategyCopy, hostnameVerifier);
} else {
return new EwsSSLProtocolSocketFactory(sslContext, hostnameVerifier);
}

}

private static String[] split(String s) {
return TextUtils.isBlank(s)?null:s.split(" *, *");
}
Expand Down

0 comments on commit 97461d9

Please sign in to comment.