|
Robot Raconteur Core C++ Library
|
Class representing an authenticated user. More...
#include <Security.h>
Public Member Functions | |
| virtual std::string | GetUsername () |
| The authenticated username. | |
| virtual std::vector< std::string > | GetPrivileges () |
| The user privileges. | |
| virtual std::vector< std::string > | GetProperties () |
| The user properties. | |
| virtual boost::posix_time::ptime | GetLoginTime () |
| The user login time. | |
| virtual boost::posix_time::ptime | GetLastAccessTime () |
| The user last access time. | |
| AuthenticatedUser (boost::string_ref username, const std::vector< std::string > &privileges, const std::vector< std::string > &properties, const boost::shared_ptr< ServerContext > &context) | |
| Construct a new AuthenticatedUser. | |
| virtual void | UpdateLastAccess () |
| Update the last access time to now. | |
Class representing an authenticated user.
Use ServerEndpoint::GetCurrentAuthenticatedUser() to retrieve the authenticated user making a request
See Security for more information.
| RobotRaconteur::AuthenticatedUser::AuthenticatedUser | ( | boost::string_ref | username, |
| const std::vector< std::string > & | privileges, | ||
| const std::vector< std::string > & | properties, | ||
| const boost::shared_ptr< ServerContext > & | context ) |
Construct a new AuthenticatedUser.
Must use boost::make_shared<AuthenticatedUser>()
Valid privileges are as follows:
| Privilege Name | Description |
|---|---|
| objectlock | Allow user to lock objects |
| objectlockoverride | Allow user to unlock object locks made by other users |
| username | The username |
| privileges | The user privileges |
| properties | The user properties |
| context | The context of the service |