public SimpleAuthenticationPlugin(List<?> users) { setUsers(users); }
public void run() { authenticationBroker.setUserGroups(updatedPlugin.getUserGroups()); authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords()); authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed()); authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser()); authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup()); } });
protected BrokerPlugin configureAuthentication() throws Exception { List<AuthenticationUser> users = new ArrayList<AuthenticationUser>(); users.add(new AuthenticationUser(USERNAME_ADMIN, PASSWORD_ADMIN, "users,admins")); users.add(new AuthenticationUser(USERNAME_USER, PASSWORD_USER, "users")); users.add(new AuthenticationUser(USERNAME_GUEST, PASSWORD_GUEST, "guests")); SimpleAuthenticationPlugin authenticationPlugin = new SimpleAuthenticationPlugin(users); authenticationPlugin.setAnonymousAccessAllowed(isAnonymousAccessAllowed()); return authenticationPlugin; } }
@Override public void modify(Object existing, Object candidate) { try { final SimpleAuthenticationPlugin updatedPlugin = fromDto(candidate, new SimpleAuthenticationPlugin()); final SimpleAuthenticationBroker authenticationBroker = (SimpleAuthenticationBroker) plugin.getBrokerService().getBroker().getAdaptor(SimpleAuthenticationBroker.class); plugin.addConnectionWork.add(new Runnable() { public void run() { authenticationBroker.setUserGroups(updatedPlugin.getUserGroups()); authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords()); authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed()); authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser()); authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup()); } }); } catch (Exception e) { plugin.info("failed to apply SimpleAuthenticationPlugin modifications to SimpleAuthenticationBroker", e); } } }
@Override public void run() { authenticationBroker.setUserGroups(updatedPlugin.getUserGroups()); authenticationBroker.setUserPasswords(updatedPlugin.getUserPasswords()); authenticationBroker.setAnonymousAccessAllowed(updatedPlugin.isAnonymousAccessAllowed()); authenticationBroker.setAnonymousUser(updatedPlugin.getAnonymousUser()); authenticationBroker.setAnonymousGroup(updatedPlugin.getAnonymousGroup()); } });
public SimpleAuthenticationPlugin(List<?> users) { setUsers(users); }
public SimpleAuthenticationPlugin(List<?> users) { setUsers(users); }
public SimpleAuthenticationPlugin(List users) { setUsers(users); }
public SimpleAuthenticationPlugin(List<?> users) { setUsers(users); }