Source:
public JdkSslFactory(SSLConfig sslConfig) throws GeneralSecurityException, IOException { this.protocol = sslConfig.sslContextProtocol; if (sslConfig.sslContextProvider.length() > 0) { this.provider = sslConfig.sslContextProvider; } ArrayList<String> cipherSuitesList = Utils.splitString(sslConfig.sslCipherSuites, ","); if (cipherSuitesList.size() > 0 && !(cipherSuitesList.size() == 1 && cipherSuitesList.get(0).equals(""))) { this.cipherSuites = cipherSuitesList.toArray(new String[cipherSuitesList.size()]); } ArrayList<String> protocolsList = Utils.splitString(sslConfig.sslEnabledProtocols, ","); if (protocolsList.size() > 0 && !(protocolsList.size() == 1 && protocolsList.get(0).equals(""))) { this.enabledProtocols = protocolsList.toArray(new String[protocolsList.size()]); } if (!sslConfig.sslEndpointIdentificationAlgorithm.isEmpty()) { this.endpointIdentification = sslConfig.sslEndpointIdentificationAlgorithm; } if (sslConfig.sslClientAuthentication.equals("required")) { this.needClientAuth = true; } else if (sslConfig.sslClientAuthentication.equals("requested")) { this.wantClientAuth = true; } if (sslConfig.sslKeymanagerAlgorithm.length() > 0) { this.kmfAlgorithm = sslConfig.sslKeymanagerAlgorithm; } if (sslConfig.sslTrustmanagerAlgorithm.length() > 0) { this.tmfAlgorithm = sslConfig.sslTrustmanagerAlgorithm; } createKeyStore(sslConfig.sslKeystoreType, sslConfig.sslKeystorePath, sslConfig.sslKeystorePassword, sslConfig.sslKeyPassword); createTrustStore(sslConfig.sslTruststoreType, sslConfig.sslTruststorePath, sslConfig.sslTruststorePassword); this.sslContext = createSSLContext(); }

Target:
public JdkSslFactory(SSLConfig sslConfig) throws GeneralSecurityException, IOException { this.protocol = sslConfig.sslContextProtocol; if (!sslConfig.sslContextProvider.isEmpty()) { this.provider = sslConfig.sslContextProvider; } ArrayList<String> cipherSuitesList = Utils.splitString(sslConfig.sslCipherSuites, ","); if (cipherSuitesList.size() > 0 && !(cipherSuitesList.size() == 1 && cipherSuitesList.get(0).isEmpty())) { this.cipherSuites = cipherSuitesList.toArray(new String[cipherSuitesList.size()]); } ArrayList<String> protocolsList = Utils.splitString(sslConfig.sslEnabledProtocols, ","); if (protocolsList.size() > 0 && !(protocolsList.size() == 1 && protocolsList.get(0).isEmpty())) { this.enabledProtocols = protocolsList.toArray(new String[protocolsList.size()]); } if (!sslConfig.sslEndpointIdentificationAlgorithm.isEmpty()) { this.endpointIdentification = sslConfig.sslEndpointIdentificationAlgorithm; } if (sslConfig.sslClientAuthentication.equals("required")) { this.needClientAuth = true; } else if (sslConfig.sslClientAuthentication.equals("requested")) { this.wantClientAuth = true; } if (!sslConfig.sslKeymanagerAlgorithm.isEmpty()) { this.kmfAlgorithm = sslConfig.sslKeymanagerAlgorithm; } if (!sslConfig.sslTrustmanagerAlgorithm.isEmpty()) { this.tmfAlgorithm = sslConfig.sslTrustmanagerAlgorithm; } createKeyStore(sslConfig.sslKeystoreType, sslConfig.sslKeystorePath, sslConfig.sslKeystorePassword, sslConfig.sslKeyPassword); createTrustStore(sslConfig.sslTruststoreType, sslConfig.sslTruststorePath, sslConfig.sslTruststorePassword); this.sslContext = createSSLContext(); }