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);
}
}
Aggregations