*/
public void createSsl(String certNickname, Boolean ssl2Enabled, String ssl2Ciphers,
Boolean ssl3Enabled, String ssl3TlsCiphers,
Boolean tlsEnabled, Boolean tlsRollbackEnabled, Boolean clientAuthEnabled) throws ConfigException
{
IiopListener listener = (IiopListener)getConfigBeanByXPath( getBasePath() );
try
{
if(listener.getSsl()!=null)
{
listener = null;
String msg = localStrings.getString( "admin.server.core.mbean.config.orblistener_has_ssl_created" );
throw new ConfigException( msg );
}
}
catch (ConfigException e)
{
if(listener==null)
throw e;
}
Ssl ssl = new Ssl();
//strings
if(certNickname!=null)
ssl.setCertNickname(certNickname);
if(ssl2Ciphers!=null)
ssl.setSsl2Ciphers(ssl2Ciphers);
if(ssl3TlsCiphers!=null)
ssl.setSsl3TlsCiphers(ssl3TlsCiphers);
//Booleans
if(ssl2Enabled!=null)
ssl.setSsl2Enabled(ssl2Enabled.booleanValue());
if(ssl3Enabled!=null)
ssl.setSsl3Enabled(ssl3Enabled.booleanValue());
if(tlsEnabled!=null)
ssl.setTlsEnabled(tlsEnabled.booleanValue());
if(tlsRollbackEnabled!=null)
ssl.setTlsRollbackEnabled(tlsRollbackEnabled.booleanValue());
if(clientAuthEnabled!=null)
ssl.setClientAuthEnabled(clientAuthEnabled.booleanValue());
listener.setSsl(ssl);
getConfigContext().flush();
}