Wittyshare
0.2
|
Loads Authentification module and acts as an interface. More...
#include <WsAuthenticator.h>
Public Member Functions | |
WsAuthenticator () | |
Constructor. More... | |
~WsAuthenticator () | |
Destructor. More... | |
int | authentify (const std::string &uid, const std::string &pass="", const std::string &ip="") |
authentify the user. More... | |
std::string | getUid () |
return the user uid WsAuthenticator::authentify must be called before More... | |
std::string | getFirstName () |
return the user name WsAuthenticator::authentify must be called before More... | |
std::string | getSurname () |
return the user surname WsAuthenticator::authentify must be called before More... | |
std::string | getEmail () |
return the user email WsAuthenticator::authentify must be called before More... | |
std::set< std::string > | getUserGroups () |
return the user groups WsAuthenticator::authentify must be called before More... | |
std::set< std::string > | getAllGroups () |
return all the possible groups WsAuthenticator::authentify must be called before More... | |
Private Member Functions | |
int | loadModule () |
loads the module and casts it as WsAbstractAuth object More... | |
Private Attributes | |
WsAbstractAuth * | m_auth |
std::string | m_uid |
std::string | m_pass |
std::string | m_ip |
Loads Authentification module and acts as an interface.
The module name must be 'libWsModAuth.so'
Definition at line 26 of file WsAuthenticator.h.
WsAuthenticator::WsAuthenticator | ( | ) |
Constructor.
Definition at line 23 of file WsAuthenticator.cpp.
WsAuthenticator::~WsAuthenticator | ( | ) |
Destructor.
Definition at line 27 of file WsAuthenticator.cpp.
int WsAuthenticator::authentify | ( | const std::string & | uid, |
const std::string & | pass = "" , |
||
const std::string & | ip = "" |
||
) |
authentify the user.
uid | the user id |
pass | the password |
Definition at line 33 of file WsAuthenticator.cpp.
set< string > WsAuthenticator::getAllGroups | ( | ) |
return all the possible groups WsAuthenticator::authentify must be called before
Definition at line 83 of file WsAuthenticator.cpp.
string WsAuthenticator::getEmail | ( | ) |
return the user email WsAuthenticator::authentify must be called before
Definition at line 69 of file WsAuthenticator.cpp.
string WsAuthenticator::getFirstName | ( | ) |
return the user name WsAuthenticator::authentify must be called before
Definition at line 55 of file WsAuthenticator.cpp.
string WsAuthenticator::getSurname | ( | ) |
return the user surname WsAuthenticator::authentify must be called before
Definition at line 62 of file WsAuthenticator.cpp.
string WsAuthenticator::getUid | ( | ) |
return the user uid WsAuthenticator::authentify must be called before
Definition at line 48 of file WsAuthenticator.cpp.
set< string > WsAuthenticator::getUserGroups | ( | ) |
return the user groups WsAuthenticator::authentify must be called before
Definition at line 76 of file WsAuthenticator.cpp.
|
private |
loads the module and casts it as WsAbstractAuth object
Definition at line 90 of file WsAuthenticator.cpp.
|
private |
Definition at line 92 of file WsAuthenticator.h.
|
private |
Definition at line 95 of file WsAuthenticator.h.
|
private |
Definition at line 94 of file WsAuthenticator.h.
|
private |
Definition at line 93 of file WsAuthenticator.h.