AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.4
|
The interface for handling authentication with the AMPS server. More...
#include <ampsplusplus.hpp>
Public Member Functions | |
virtual std::string | authenticate (const std::string &userName_, const std::string &password_)=0 |
Called by Client just before the logon command is sent. More... | |
virtual std::string | retry (const std::string &userName_, const std::string &password_)=0 |
Called by Client when a logon ack is received with a status of retry. More... | |
virtual void | completed (const std::string &userName_, const std::string &password_, const std::string &reason_)=0 |
Called by Client once a logon completes successfully. More... | |
The interface for handling authentication with the AMPS server.
|
pure virtual |
Called by Client just before the logon command is sent.
userName_ | The current value of the user name from the URI. |
password_ | The current value of the password from the URI. |
Implemented in AMPS::DefaultAuthenticator.
|
pure virtual |
Called by Client once a logon completes successfully.
userName_ | The user name that successfully logged on to the server. |
password_ | The password that successfully logged on to the server. |
reason_ | The reason for successful completion, taken from the message returned by the server. |
Implemented in AMPS::DefaultAuthenticator.
|
pure virtual |
Called by Client when a logon ack is received with a status of retry.
Client will continue trying to logon as long as the server returns retry and this method succeeds.
userName_ | The user name returned in the server's ACK message. |
password_ | The password or token returned in the server's ACK message. |
Implemented in AMPS::DefaultAuthenticator.