218219220221222223224225226227228
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()) {
256257258259260261262263264265266
User user = getUserByName(name, false); if ( user == null ) { return false; } else { return user.verifyPassword(password); } } /** * Returns a count of the users in the repository.
248249250251252253254255256257258
275276277278279280281282283284285
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.
326327328329330331332333334335336
299300301302303304305306307308309
283284285286287288289290291292293
131132133134135136137138139140141
} 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(); }
247248249250251252253254255256257