gloox
0.9.9.12
|
#include <nonsaslauth.h>
Public Member Functions | |
NonSaslAuth (Client *parent) | |
virtual | ~NonSaslAuth () |
void | doAuth (const std::string &sid) |
virtual bool | handleIq (Stanza *stanza) |
virtual bool | handleIqID (Stanza *stanza, int context) |
Public Member Functions inherited from IqHandler | |
virtual | ~IqHandler () |
This class is an implementation of XEP-0078 (Non-SASL Authentication).
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.
NonSaslAuth | ( | Client * | parent | ) |
Constructor.
parent | The ClientBase which is used to authenticate. |
Definition at line 23 of file nonsaslauth.cpp.
|
virtual |
Virtual Destructor.
Definition at line 30 of file nonsaslauth.cpp.
void doAuth | ( | const std::string & | sid | ) |
Starts authentication by querying the server for the required authentication fields. Digest authentication is preferred over plain text passwords.
sid | The session ID given by the server with the stream opening tag. |
Definition at line 39 of file nonsaslauth.cpp.
|
virtual |
Reimplement this function if you want to be notified about incoming IQs.
stanza | The complete Stanza. |
Implements IqHandler.
Definition at line 123 of file nonsaslauth.cpp.
|
virtual |
Reimplement this function if you want to be notified about incoming IQs with a specific value of the id
attribute. You have to enable tracking of those IDs using Client::trackID(). This is usually useful for IDs that generate a positive reply, i.e. <iq type='result' id='reg'/> where a namespace filter wouldn't work.
stanza | The complete Stanza. |
context | A value to restore context, stored with ClientBase::trackID(). |
Implements IqHandler.
Definition at line 56 of file nonsaslauth.cpp.