|
dmlite 0.6
|
#include <Authn.h>


Public Member Functions | |
| BuiltInAuthn (const std::string &, const std::string &) | |
| ~BuiltInAuthn () | |
| std::string | getImplId (void) const throw () |
| String ID of the user DB implementation. | |
| virtual SecurityContext * | createSecurityContext (const SecurityCredentials &cred) |
| virtual SecurityContext * | createSecurityContext () |
| GroupInfo | newGroup (const std::string &gname) |
| GroupInfo | getGroup (gid_t gid) |
| GroupInfo | getGroup (const std::string &groupName) |
| GroupInfo | getGroup (const std::string &key, const boost::any &value) |
| void | updateGroup (const GroupInfo &group) |
| void | deleteGroup (const std::string &groupName) |
| Delete a group. | |
| UserInfo | newUser (const std::string &uname) |
| UserInfo | getUser (const std::string &userName) |
| UserInfo | getUser (const std::string &userName, gid_t *group) |
| UserInfo | getUser (const std::string &key, const boost::any &value) |
| void | updateUser (const UserInfo &user) |
| void | deleteUser (const std::string &userName) |
| Delete a user. | |
| std::vector< GroupInfo > | getGroups (void) |
| Get the group list. | |
| std::vector< UserInfo > | getUsers (void) |
| Get the user list. | |
| void | getIdMap (const std::string &userName, const std::vector< std::string > &groupNames, UserInfo *user, std::vector< GroupInfo > *groups) |
Public Member Functions inherited from dmlite::Authn | |
| virtual | ~Authn () |
| Destructor. | |
| virtual std::string | getImplId (void) const =0 throw () |
| String ID of the user DB implementation. | |
| virtual SecurityContext * | createSecurityContext (const SecurityCredentials &cred) |
| virtual SecurityContext * | createSecurityContext (void) |
| virtual GroupInfo | newGroup (const std::string &groupName) |
| virtual GroupInfo | getGroup (const std::string &groupName) |
| virtual GroupInfo | getGroup (const std::string &key, const boost::any &value) |
| virtual std::vector< GroupInfo > | getGroups (void) |
| Get the group list. | |
| virtual void | updateGroup (const GroupInfo &group) |
| virtual void | deleteGroup (const std::string &groupName) |
| Delete a group. | |
| virtual UserInfo | newUser (const std::string &userName) |
| virtual UserInfo | getUser (const std::string &userName) |
| virtual UserInfo | getUser (const std::string &key, const boost::any &value) |
| virtual std::vector< UserInfo > | getUsers (void) |
| Get the user list. | |
| virtual void | updateUser (const UserInfo &user) |
| virtual void | deleteUser (const std::string &userName) |
| Delete a user. | |
| virtual void | getIdMap (const std::string &userName, const std::vector< std::string > &groupNames, UserInfo *user, std::vector< GroupInfo > *groups) |
Private Attributes | |
| std::string | nobody_ |
| std::string | nogroup_ |
| dmlite::BuiltInAuthn::BuiltInAuthn | ( | const std::string & | , |
| const std::string & | |||
| ) |
| dmlite::BuiltInAuthn::~BuiltInAuthn | ( | ) |
|
virtual |
Create a default security context.
Reimplemented from dmlite::Authn.
|
virtual |
Create a security context from the credentials.
| cred | The security credentials. |
Reimplemented from dmlite::Authn.
|
virtual |
Delete a group.
Reimplemented from dmlite::Authn.
|
virtual |
Delete a user.
Reimplemented from dmlite::Authn.
|
virtual |
Get a specific group.
| groupName | The group name. |
Reimplemented from dmlite::Authn.
|
virtual |
Get a specific group using an alternative key.
| key | The key name. |
| value | They value to search for. |
Reimplemented from dmlite::Authn.
| GroupInfo dmlite::BuiltInAuthn::getGroup | ( | gid_t | gid | ) |
|
virtual |
Get the group list.
Reimplemented from dmlite::Authn.
|
virtual |
Get the mapping of a user/group. Additionaly, new users and groups MAY be created by the implementation.
| userName | The user name. |
| groupNames | The different groups. Can be empty. |
| user | Pointer to an UserInfo struct where to put the data. |
| groups | Pointer to a vector where the group mapping will be put. |
Reimplemented from dmlite::Authn.
|
virtual | ||||||||||||||
String ID of the user DB implementation.
Implements dmlite::Authn.
|
virtual |
Get a specific user using an alternative key.
| key | The key name. |
| value | They value to search for. |
Reimplemented from dmlite::Authn.
|
virtual |
Get a specific user.
| userName | The user name. |
Reimplemented from dmlite::Authn.
| UserInfo dmlite::BuiltInAuthn::getUser | ( | const std::string & | userName, |
| gid_t * | group | ||
| ) |
|
virtual |
Get the user list.
Reimplemented from dmlite::Authn.
|
virtual |
Create a new group.
| groupName | The group name. |
Reimplemented from dmlite::Authn.
|
virtual |
Create a new user.
| userName | The user name. |
Reimplemented from dmlite::Authn.
|
virtual |
Update group info. 'name' identify uniquely the group.
| group | The group metadata to update. |
Reimplemented from dmlite::Authn.
|
virtual |
Update user info. 'name' identify uniquely the user.
| user | The user metadata to update. |
Reimplemented from dmlite::Authn.
|
private |
|
private |