glooxd  0.3-svn
Public Member Functions | List of all members
AuthenticationHandler Class Reference

#include <authenticationhandler.h>

Public Member Functions

virtual ~AuthenticationHandler ()
virtual bool handleUserRequest (const gloox::JID &bare)=0
virtual bool handleSASLPlain (const std::string &authzid, const std::string &authcid, const std::string &password)=0

Detailed Description

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net

Definition at line 34 of file authenticationhandler.h.

Constructor & Destructor Documentation

virtual ~AuthenticationHandler ( )
inlinevirtual

Virtual destructor.

Definition at line 40 of file authenticationhandler.h.

Member Function Documentation

virtual bool handleSASLPlain ( const std::string &  authzid,
const std::string &  authcid,
const std::string &  password 
)
pure virtual

This function will be called for SASL PLAIN authentication requests.

Parameters
authzidThe authzid.
authcidThe authcid (username).
passwordThe password.
Returns
True if the username/password combo is OK, false otherwise.
virtual bool handleUserRequest ( const gloox::JID &  bare)
pure virtual

This function is called if the server needs to determine if a given user account exists. The function only gets called if there is no open session associated with the JID.

Parameters
bareThe user account in 'bare JID' (user) form.
Returns
True if the account exists, false otherwise.

The documentation for this class was generated from the following file: