public IIOPSSLSocketFactory() {
try {
if (Switch.getSwitch().getContainerType() == Switch.EJBWEB_CONTAINER) {
ConfigContext configContext =
ApplicationServer.getServerContext().getConfigContext();
IiopService iiopBean = ServerBeansFactory.getIiopServiceBean(configContext);
IiopListener[] iiopListeners = iiopBean.getIiopListener();
int listenersLength = (iiopListeners != null) ? iiopListeners.length : 0;
for (int i = 0; i < listenersLength; i++) {
Ssl ssl = iiopListeners[i].getSsl();
SSLInfo sslInfo = null;
if (iiopListeners[i].isSecurityEnabled()) {
if (ssl != null) {
sslInfo = init(ssl.getCertNickname(),
ssl.isSsl2Enabled(), ssl.getSsl2Ciphers(),
ssl.isSsl3Enabled(), ssl.getSsl3TlsCiphers(),
ssl.isTlsEnabled());
} else {
sslInfo = getDefaultSslInfo();
}
portToSSLInfo.put(
new Integer(iiopListeners[i].getPort()), sslInfo);
}
}
if (iiopBean.getSslClientConfig() != null &&
iiopBean.getSslClientConfig().isEnabled()) {
Ssl outboundSsl = iiopBean.getSslClientConfig().getSsl();
if (outboundSsl != null) {
clientSslInfo = init(outboundSsl.getCertNickname(),
outboundSsl.isSsl2Enabled(),
outboundSsl.getSsl2Ciphers(),
outboundSsl.isSsl3Enabled(),