}
// if we are trying to access "wss" scheme and we don't have sslEngineConfigurator instance
// we should try to create ssl connection using JVM properties.
if (sslFilter == null) {
SslContextConfigurator defaultConfig = new SslContextConfigurator();
defaultConfig.retrieve(System.getProperties());
String wlsSslTrustStore = (String) cec.getUserProperties().get(ClientManager.WLS_SSL_TRUSTSTORE_PROPERTY);
String wlsSslTrustStorePassword = (String) cec.getUserProperties().get(ClientManager.WLS_SSL_TRUSTSTORE_PWD_PROPERTY);
if (wlsSslTrustStore != null) {
defaultConfig.setTrustStoreFile(wlsSslTrustStore);
if (wlsSslTrustStorePassword != null) {
defaultConfig.setTrustStorePassword(wlsSslTrustStorePassword);
}
}
// client mode = true, needClientAuth = false, wantClientAuth = false
SslEngineConfigurator sslEngineConfigurator = new SslEngineConfigurator(defaultConfig, true, false, false);