#include <nonsaslauth.h>
Inherits IqHandler.
Inheritance diagram for NonSaslAuth:
Public Member Functions | |
NonSaslAuth (Client *parent, const std::string &sid) | |
virtual | ~NonSaslAuth () |
void | doAuth () |
virtual bool | handleIq (Stanza *) |
virtual bool | handleIqID (Stanza *stanza, int context) |
It is invoked by Client automatically if supported by the server and if SASL authentication is not supported. You should not need to use this class manually.
Definition at line 37 of file nonsaslauth.h.
|
Constructor.
Definition at line 24 of file nonsaslauth.cpp. References ClientBase::registerIqHandler(). |
|
Virtual Destructor. Definition at line 31 of file nonsaslauth.cpp. References ClientBase::removeIqHandler(). |
|
Starts authentication by querying the server for the required authentication fields. Digest authentication is preferred over plain text passwords. Definition at line 37 of file nonsaslauth.cpp. References Tag::addAttrib(), Tag::addChild(), ClientBase::getID(), ClientBase::jid(), ClientBase::send(), JID::server(), ClientBase::trackID(), and Client::username(). Referenced by Client::nonSaslLogin(). |
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 59 of file nonsaslauth.h. |
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 54 of file nonsaslauth.cpp. References gloox::CONN_AUTHENTICATION_FAILED, ClientBase::disconnect(), Tag::findChild(), Tag::hasAttribute(), Tag::hasChild(), gloox::NONSASL_CONFLICT, gloox::NONSASL_NOT_ACCEPTABLE, gloox::NONSASL_NOT_AUTHORIZED, ClientBase::setAuthed(), ClientBase::setAuthFailure(), gloox::STANZA_IQ_ERROR, and Stanza::subtype(). |