Sirikata
|
#include <Authenticator.hpp>
Public Types | |
typedef std::tr1::function < void(bool)> | Callback |
Public Member Functions | |
virtual | ~Authenticator () |
virtual void | start () |
virtual void | stop () |
virtual void | authenticate (const UUID &obj_id, MemoryReference auth, Callback cb)=0 |
Try to authenticate a user given the requested object ID and associated authentication information. |
typedef std::tr1::function<void(bool)> Sirikata::Authenticator::Callback |
virtual Sirikata::Authenticator::~Authenticator | ( | ) | [inline, virtual] |
virtual void Sirikata::Authenticator::authenticate | ( | const UUID & | obj_id, |
MemoryReference | auth, | ||
Callback | cb | ||
) | [pure virtual] |
Try to authenticate a user given the requested object ID and associated authentication information.
The callback is invoked to provide the result, including failure due to timeout.
Implemented in Sirikata::NullAuthenticator, and Sirikata::SQLiteAuthenticator.
Referenced by Sirikata::Server::handleConnect().
virtual void Sirikata::Authenticator::start | ( | ) | [inline, virtual] |
Implements Sirikata::Service.
Reimplemented in Sirikata::SQLiteAuthenticator.
virtual void Sirikata::Authenticator::stop | ( | ) | [inline, virtual] |
Implements Sirikata::Service.
Reimplemented in Sirikata::SQLiteAuthenticator.