String providerType = (String) handlerCtx.getInputValue("ProviderType");
String className = (String) handlerCtx.getInputValue("ClassName");
boolean isDefault = (Boolean) handlerCtx.getInputValue("DefaultProvider");
ConfigConfig config = AMXUtil.getConfig(configName);
MessageSecurityConfig msgConfig = config.getSecurityServiceConfig().createMessageSecurityConfig(authLayer,
providerId, providerType, className, new HashMap());
if(isDefault) {
msgConfig.setDefaultClientProvider(providerId);
}
AMXUtil.editProperties(handlerCtx, msgConfig.getProviderConfigMap().get(providerId));
}catch (Exception ex){
GuiUtil.handleException(handlerCtx, ex);
}
}