Public Types | Public Member Functions

QXmppPasswordChecker Class Reference

Interface for password checkers. More...

#include <QXmppIncomingClient.h>

List of all members.

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

Detailed Description

Interface for password checkers.


Member Function Documentation

virtual Error QXmppPasswordChecker::checkPassword ( const QString &  username,
const QString &  password 
) [pure virtual]

Checks that the given credentials are valid.

Parameters:
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.

Parameters:
username 
password 
bool QXmppPasswordChecker::hasGetPassword (  )  const [virtual]

Returns true if the getPassword() method is implemented.


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations Enumerator