Interface for password checkers. More...
#include <QXmppIncomingClient.h>
Public Types | |
| enum | Error { NoError = 0, AuthorizationError, TemporaryError } |
This enum is used to describe authentication errors. | |
Public Member Functions | |
| virtual Error | checkPassword (const QString &username, const QString &password)=0 |
| virtual bool | getPassword (const QString &username, QString &password) |
| virtual bool | hasGetPassword () const |
Interface for password checkers.
| virtual Error QXmppPasswordChecker::checkPassword | ( | const QString & | username, | |
| const QString & | password | |||
| ) | [pure virtual] |
Checks that the given credentials are valid.
| username | ||
| password |
| bool QXmppPasswordChecker::getPassword | ( | const QString & | username, | |
| QString & | password | |||
| ) | [virtual] |
Retrieves the password for the given username.
You need to reimplement this method to support DIGEST-MD5 authentication.
| username | ||
| password |
| bool QXmppPasswordChecker::hasGetPassword | ( | ) | const [virtual] |
Returns true if the getPassword() method is implemented.
1.7.1