}
public void saveFilter(SecurityNamedServiceConfig config, MigrationHelper migrationHelper)
throws IOException,SecurityConfigException {
SecurityConfigValidator validator =
SecurityConfigValidator.getConfigurationValiator(
GeoServerSecurityFilter.class,
config.getClassName());
boolean fireChanged = false;
if (config.getId() == null) {
config.initBeforeSave();
validator.validateAddFilter(config);
}
else {
validator.validateModifiedFilter(config,
filterHelper.loadConfig(config.getName(), migrationHelper));
// remove all cached authentications for this filter
getAuthenticationCache().removeAll(config.getName());
if (!securityConfig.getFilterChain().patternsForFilter(config.getName(),true).isEmpty()) {
fireChanged=true;