Search in sources :

Example 1 with IIOPListenerConfig

use of com.sun.appserv.management.config.IIOPListenerConfig in project Payara by payara.

the class IIOPListenerConfigTest method testCreateSSL.

public void testCreateSSL() throws Exception {
    if (!checkNotOffline("testCreateSSL")) {
        return;
    }
    final String NAME = "IIOPListenerConfigMgr-testCreateSSL";
    removeEx(NAME);
    final IIOPListenerConfig newListener = (IIOPListenerConfig) createProgeny(NAME, null);
    try {
        final Map<String, IIOPListenerConfig> listeners = getIIOPService().getIIOPListenerConfigMap();
        final IIOPListenerConfig listener = (IIOPListenerConfig) listeners.get(NAME);
        assert listener != null;
        assert listener == newListener;
        final String CERT_NICKNAME = NAME + "Cert";
        final SSLConfig ssl = listener.createSSLConfig(CERT_NICKNAME, null);
        assert ssl != null;
        assert ssl.getCertNickname().equals(CERT_NICKNAME);
        listener.removeSSLConfig();
    } finally {
        remove(NAME);
    }
}
Also used : SSLConfig(com.sun.appserv.management.config.SSLConfig) IIOPListenerConfig(com.sun.appserv.management.config.IIOPListenerConfig)

Aggregations

IIOPListenerConfig (com.sun.appserv.management.config.IIOPListenerConfig)1 SSLConfig (com.sun.appserv.management.config.SSLConfig)1