|
pion-net
4.0.9
|
#include <PionUser.hpp>
Inherits noncopyable.
Public Member Functions | |
| PionUserManager (void) | |
| construct a new PionUserManager object | |
| virtual | ~PionUserManager () |
| virtual destructor | |
| bool | empty (void) const |
| returns true if no users are defined | |
| virtual bool | addUser (const std::string &username, const std::string &password) |
| virtual bool | updateUser (const std::string &username, const std::string &password) |
| virtual bool | removeUser (const std::string &username) |
| virtual PionUserPtr | getUser (const std::string &username) |
| virtual PionUserPtr | getUser (const std::string &username, const std::string &password) |
Protected Types | |
| typedef std::map< std::string, PionUserPtr > | UserMap |
| data type for a map of usernames to user objects | |
Protected Attributes | |
| boost::mutex | m_mutex |
| mutex used to protect access to the user list | |
| UserMap | m_users |
| user records container | |
PionUserManager base class for PionUser container/manager
Definition at line 147 of file PionUser.hpp.
|
inlinevirtual |
used to add a new user with plaintext password
| username | name or identifier of the user to add |
| password | plaintext password of the user to add |
Definition at line 172 of file PionUser.hpp.
References pion::net::PionUser::PionUser().
|
inlinevirtual |
Used to locate user object by username
Definition at line 262 of file PionUser.hpp.
|
inlinevirtual |
Used to locate user object by username and password
Definition at line 274 of file PionUser.hpp.
|
inlinevirtual |
used to remove given user
Definition at line 250 of file PionUser.hpp.
|
inlinevirtual |
update password for given user
| username | name or identifier of the user to update |
| password | plaintext password of the user to update |
Definition at line 192 of file PionUser.hpp.
References pion::net::PionUser::PionUser().
1.8.11