// Create SSLPolicy
// (SSL_REQUIRED ensures home and remote IORs
// will have port 0 in the primary address)
boolean sslRequired = false;
if (securityConfig != null) {
IORTransportConfigMetaData tc = securityConfig.getTransportConfig();
sslRequired = tc.getIntegrity() ==
IORTransportConfigMetaData.INTEGRITY_REQUIRED
|| tc.getConfidentiality() ==
IORTransportConfigMetaData.CONFIDENTIALITY_REQUIRED
|| tc.getEstablishTrustInClient() ==
IORTransportConfigMetaData.ESTABLISH_TRUST_IN_CLIENT_REQUIRED;
}
final Any sslPolicyValue = orb.create_any();
SSLPolicyValueHelper.insert(sslPolicyValue, (sslRequired) ? SSLPolicyValue.SSL_REQUIRED : SSLPolicyValue.SSL_NOT_REQUIRED);
sslPolicy = null; //orb.create_policy(SSL_POLICY_TYPE.value, sslPolicyValue);