269270271272273274275276277278279
public boolean test(String name, String password) { User user = getUserByName(name, false); if ( user == null ) { return false; } else { return user.verifyPassword(password); } } /** * Returns a count of the users in the repository.
267268269270271272273274275276277
245246247248249250251252253254255
return false; } } catch (Exception e) { throw new RuntimeException("Exception retrieving User" + e); } return user.verifyPassword(password); } public int countUsers() { int count = 0; for (Iterator it = list(); it.hasNext(); it.next()) {
217218219220221222223224225226227
133134135136137138139140141142143
} public boolean test(String name, String password) { User user = getUserByName(name); if (user == null) return false; return user.verifyPassword(password); } public int countUsers() { return m_users.size(); }