#include <user.hpp>
user_manager base class for user container/manager
data type for a map of usernames to user objects
pion::user_manager::user_manager |
( |
void |
| ) |
|
|
inline |
virtual pion::user_manager::~user_manager |
( |
| ) |
|
|
inlinevirtual |
virtual bool pion::user_manager::add_user |
( |
const std::string & |
username, |
|
|
const std::string & |
password |
|
) |
| |
|
inlinevirtual |
used to add a new user with plaintext password
- Parameters
-
username | name or identifier of the user to add |
password | plaintext password of the user to add |
- Returns
- false if user with such a name already exists
References m_mutex, and m_users.
bool pion::user_manager::empty |
( |
void |
| ) |
const |
|
inline |
virtual user_ptr pion::user_manager::get_user |
( |
const std::string & |
username | ) |
|
|
inlinevirtual |
Used to locate user object by username
References m_mutex, and m_users.
virtual user_ptr pion::user_manager::get_user |
( |
const std::string & |
username, |
|
|
const std::string & |
password |
|
) |
| |
|
inlinevirtual |
Used to locate user object by username and password
References m_mutex, and m_users.
virtual bool pion::user_manager::remove_user |
( |
const std::string & |
username | ) |
|
|
inlinevirtual |
used to remove given user
- Returns
- false if no user with such username
References m_mutex, and m_users.
virtual bool pion::user_manager::update_user |
( |
const std::string & |
username, |
|
|
const std::string & |
password |
|
) |
| |
|
inlinevirtual |
update password for given user
- Parameters
-
username | name or identifier of the user to update |
password | plaintext password of the user to update |
- Returns
- false if user with such a name doesn't exist
References m_mutex, and m_users.
boost::mutex pion::user_manager::m_mutex |
|
mutableprotected |
The documentation for this class was generated from the following file: