class AuthServicePluginUtils {

	public static GroupFilter createGroupFilter(List<GroupResponse> groups) {
		List<String> allowed = new ArrayList<>();
		allowed.addAll(groups.stream().map(GroupResponse::getName).collect(Collectors.toList()));
		return (groupName) -> {
			return !allowed.contains(groupName);
		};
	}

	private  AuthServicePluginUtils();

}