156157158159160161162163164165166
} 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(); }
198199200201202203204205206207208
public boolean test(String name, String password) { User user = getUserByName(name, ignoreCase); if (user == null) { return false; } else { return user.verifyPassword(password); } } /** * Returns a count of the users in the repository.
258259260261262263264265266267268
user = getUserByName(name); if (user == null) return false; } catch (Exception e) { throw new RuntimeException("Exception retrieving User" + e); } return user.verifyPassword(password); } /** * @see org.apache.james.user.api.UsersRepository#countUsers() */
544545546547548549550551552553554
* java.lang.String) */ public boolean test(String name, String password) { User u = getUserByName(name); if (u != null) { return u.verifyPassword(password); } return false; } /*
291292293294295296297298299300301
final User user = getUserByName(name); final boolean result; if (user == null) { result = false; } else { result = user.verifyPassword(password); } return result; } /**