Reprensents a User session.
More...
#include <WsUserSession.h>
|
| WsUserSession (const std::string &uid, const std::string &pass="", const std::string &ip="") |
| Constructor. More...
|
|
const std::set< std::string > & | getGroups () |
| get the groups belonging to the user More...
|
|
const std::string & | getName () |
|
const std::string & | getSurname () |
|
const std::string & | getEmail () |
|
void | setGroups (const std::set< std::string > &groups) |
| sets the groups of a user More...
|
|
void | setName (const std::string &name) |
| set the name of the user More...
|
|
void | setSurname (const std::string &surname) |
| set the surname of the user More...
|
|
void | setEmail (const std::string &email) |
| set the email of the user More...
|
|
bool | isValidSession (const std::string &uid, const std::string &pass, const std::string &ip) |
| returns true or false whether the session is valid More...
|
|
Reprensents a User session.
This class is instanciated when a user first connects to the daemon to authenticate
Definition at line 27 of file WsUserSession.h.
WsUserSession::WsUserSession |
( |
const std::string & |
uid, |
|
|
const std::string & |
pass = "" , |
|
|
const std::string & |
ip = "" |
|
) |
| |
Constructor.
- Parameters
-
uid | the user id |
pass | optionnal password |
ip | optionnal ip of the user |
Definition at line 19 of file WsUserSession.cpp.
const string & WsUserSession::getEmail |
( |
| ) |
|
const set< string > & WsUserSession::getGroups |
( |
| ) |
|
get the groups belonging to the user
- Returns
- a set of gid or empty set if no groups
Definition at line 27 of file WsUserSession.cpp.
const string & WsUserSession::getName |
( |
| ) |
|
long WsUserSession::getNowTimestamp |
( |
| ) |
|
|
private |
const string & WsUserSession::getSurname |
( |
| ) |
|
bool WsUserSession::isValidSession |
( |
const std::string & |
uid, |
|
|
const std::string & |
pass, |
|
|
const std::string & |
ip |
|
) |
| |
returns true or false whether the session is valid
- Returns
- true if session valid, false otherwise
- Parameters
-
uid | user id |
pass | the password |
ip | the ip |
Definition at line 37 of file WsUserSession.cpp.
void WsUserSession::setEmail |
( |
const std::string & |
email | ) |
|
void WsUserSession::setGroups |
( |
const std::set< std::string > & |
groups | ) |
|
void WsUserSession::setName |
( |
const std::string & |
name | ) |
|
void WsUserSession::setSurname |
( |
const std::string & |
surname | ) |
|
std::string WsUserSession::m_email |
|
protected |
std::set<std::string> WsUserSession::m_groups |
|
protected |
std::string WsUserSession::m_ip |
|
protected |
std::string WsUserSession::m_name |
|
protected |
std::string WsUserSession::m_pass |
|
protected |
std::string WsUserSession::m_surname |
|
protected |
long WsUserSession::m_timestamp |
|
protected |
std::string WsUserSession::m_uid |
|
protected |
The documentation for this class was generated from the following files:
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/fsdaemon/src/FsDaemon/WsUserSession.h
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/fsdaemon/src/FsDaemon/WsUserSession.cpp