/** * Return true if the specified password is the correct, valid password for this user account. * This implementation uses standard (case-sensitive) String comparison. Subclasses can provide * custom comparison behavior, for instance using encrypted password values, by overriding this * method. * * @param password - the password to compare against the configured value * @return true if the password is correct and valid * @throws org.mockftpserver.core.util.AssertFailedException * - if the username property is null */ public boolean isValidPassword(String password) { Assert.notNullOrEmpty(username, "username"); return !passwordCheckedDuringValidation || comparePassword(password); }