def checkPassword(self, password):
if isinstance(password, str):<EOL><INDENT>password = password.encode('<STR_LIT:utf-8>')<EOL><DEDENT>correctResponse = _calcResponse(self.challenge, self.nonce, password)<EOL>return correctResponse == self.response<EOL>
Check the given plaintext password against the response in this
credentials object.

@type password: C{str}
@param password: The known correct password associated with
    C{self.username}.

@return: A C{bool}, C{True} if this credentials object agrees with the
    given password, C{False} otherwise.