protected SortedSet<String> getNamesFor(Class<?> extensionPoint) { try { if (extensionPoint == GeoServerUserGroupService.class) return manager.listUserGroupServices(); if (extensionPoint == GeoServerRoleService.class) return manager.listRoleServices(); if (extensionPoint == GeoServerAuthenticationProvider.class) return manager.listAuthenticationProviders(); if (extensionPoint == AuthenticationProvider.class) return manager.listAuthenticationProviders(); if (extensionPoint == GeoServerSecurityFilter.class) return manager.listFilters(); if (extensionPoint == PasswordValidator.class) return manager.listPasswordValidators(); if (extensionPoint == MasterPasswordProvider.class) { return manager.listMasterPasswordProviders(); } } catch (IOException ex) { throw new RuntimeException(ex); } throw new RuntimeException("Unkwnown extension point: " + extensionPoint.getName()); }
for (String name : listAuthenticationProviders()) { SecurityNamedServiceConfig config = authProviderHelper.loadConfig(name); for (Class<?> classWithEncryption : configClasses) {
public void validateRemoveUserGroupService(SecurityUserGroupServiceConfig config) throws SecurityConfigException { validateRemoveNamedService(GeoServerUserGroupService.class, config); try { for (String name : manager.listAuthenticationProviders()) { SecurityAuthProviderConfig authConfig = manager.loadAuthenticationProviderConfig(name); String userGroupService = authConfig.getUserGroupServiceName(); if (isNotEmpty(userGroupService)) { if (authConfig.getUserGroupServiceName().equals(config.getName())) throw createSecurityException( USERGROUP_SERVICE_ACTIVE_$2, config.getName(), authConfig.getName()); } } } catch (IOException ex) { throw new RuntimeException(ex); } }
authProviders = manager.listAuthenticationProviders(); } catch (IOException e) { throw new RuntimeException(e);
.andReturn(authProvider) .anyTimes(); expect(secMgr.listAuthenticationProviders()) .andReturn( new TreeSet<String>(
@Override protected List<SecurityAuthProviderConfig> getItems() { List <SecurityAuthProviderConfig> result = new ArrayList<SecurityAuthProviderConfig>(); try { for (String name : getSecurityManager().listAuthenticationProviders()) { result.add(getSecurityManager().loadAuthenticationProviderConfig(name)); } } catch (IOException ex) { throw new RuntimeException(ex); } return result; }
@Override protected List<SecurityAuthProviderConfig> getItems() { List <SecurityAuthProviderConfig> result = new ArrayList<SecurityAuthProviderConfig>(); try { for (String name : getSecurityManager().listAuthenticationProviders()) { result.add(getSecurityManager().loadAuthenticationProviderConfig(name)); } } catch (IOException ex) { throw new RuntimeException(ex); } return result; }
@Override protected List<SecurityAuthProviderConfig> getItems() { List<SecurityAuthProviderConfig> result = new ArrayList<SecurityAuthProviderConfig>(); try { for (String name : getSecurityManager().listAuthenticationProviders()) { result.add(getSecurityManager().loadAuthenticationProviderConfig(name)); } } catch (IOException ex) { throw new RuntimeException(ex); } return result; } }
@Override public List<String> getObject() { try { return new ArrayList<String>( GeoServerApplication.get() .getSecurityManager() .listAuthenticationProviders()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
@Override public List<String> getObject() { try { return new ArrayList<String>( GeoServerApplication.get().getSecurityManager().listAuthenticationProviders()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
@Override public List<String> getObject() { try { return new ArrayList<String>( GeoServerApplication.get().getSecurityManager().listAuthenticationProviders()); } catch (IOException e) { throw new WicketRuntimeException(e); } }
expect(secMgr.listAuthenticationProviders()).andReturn(new TreeSet<String>()).anyTimes();