config.getSecurityServiceConfig().createJACCProviderConfig(
(String)handlerCtx.getInputValue("Name"), ((String)handlerCtx.getInputValue("PolicyProvider")), ((String)handlerCtx.getInputValue("PolicyConfig")), optionalMap);
return;
}
Map<String,JACCProviderConfig>jaccProviders = config.getSecurityServiceConfig().getJACCProviderConfigMap();
JACCProviderConfig jacc = (JACCProviderConfig)jaccProviders.get((String)handlerCtx.getInputValue("Name"));
ArrayList removeProps = (ArrayList)handlerCtx.getInputValue("RemoveProps");
Map addProps = (Map)handlerCtx.getInputValue("AddProps");
String[] remove = (String[])removeProps.toArray(new String[ removeProps.size()]);
for(int i=0; i<remove.length; i++){
jacc.removeProperty(remove[i]);
}
if(addProps != null ){
Iterator additer = addProps.keySet().iterator();
while(additer.hasNext()){
Object key = additer.next();
String addvalue = (String)addProps.get(key);
jacc.setPropertyValue((String)key, addvalue);
}
}
jacc.setPolicyConfigurationFactoryProvider(((String)handlerCtx.getInputValue("PolicyConfig")));
jacc.setPolicyProvider(((String)handlerCtx.getInputValue("PolicyProvider")));
}catch (Exception ex){
GuiUtil.handleException(handlerCtx, ex);
}
}