#include <Authn.h>
List of all members.
Private Attributes |
std::string | nobody_ |
Constructor & Destructor Documentation
BuiltInAuthn::BuiltInAuthn |
( |
const std::string & |
nb | ) |
|
BuiltInAuthn::~BuiltInAuthn |
( |
| ) |
|
Member Function Documentation
Create a security context from the credentials.
- Parameters:
-
cred | The security credentials. |
- Returns:
- A newly created SecurityContext.
Implements dmlite::Authn.
void BuiltInAuthn::deleteGroup |
( |
const std::string & |
groupName | ) |
throw (DmException) |
|
virtual |
void BuiltInAuthn::deleteUser |
( |
const std::string & |
userName | ) |
throw (DmException) |
|
virtual |
Get a specific group.
- Parameters:
-
- Returns:
- The group.
Implements dmlite::Authn.
GroupInfo BuiltInAuthn::getGroup |
( |
const std::string & |
key, |
|
|
const boost::any & |
value |
|
) |
| throw (DmException) |
|
virtual |
Get a specific group using an alternative key.
- Parameters:
-
key | The key name. |
value | They value to search for. |
- Returns:
- The group.
- Note:
- The implementation will throw an exception if the field can not be used as key.
Implements dmlite::Authn.
void BuiltInAuthn::getIdMap |
( |
const std::string & |
userName, |
|
|
const std::vector< std::string > & |
groupNames, |
|
|
UserInfo * |
user, |
|
|
std::vector< GroupInfo > * |
groups |
|
) |
| throw (DmException) |
|
virtual |
Get the mapping of a user/group. Additionaly, new users and groups MAY be created by the implementation.
- Parameters:
-
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. |
- Note:
- If groupNames is empty, grid mapfile will be used to retrieve the default group.
Implements dmlite::Authn.
std::string BuiltInAuthn::getImplId |
( |
void |
| ) |
const throw () |
|
virtual |
String ID of the user DB implementation.
Implements dmlite::Authn.
Get a specific user.
- Parameters:
-
- Returns:
- The user.
Implements dmlite::Authn.
UserInfo BuiltInAuthn::getUser |
( |
const std::string & |
userName, |
|
|
gid_t * |
group |
|
) |
| throw (DmException) |
UserInfo BuiltInAuthn::getUser |
( |
const std::string & |
key, |
|
|
const boost::any & |
value |
|
) |
| throw (DmException) |
|
virtual |
Get a specific user using an alternative key.
- Parameters:
-
key | The key name. |
value | They value to search for. |
- Returns:
- The user.
- Note:
- The implementation will throw an exception if the field can not be used as key.
Implements dmlite::Authn.
Create a new group.
- Parameters:
-
- Returns:
- The new group.
Implements dmlite::Authn.
Create a new user.
- Parameters:
-
- Returns:
- The new user.
Implements dmlite::Authn.
Update group info. 'name' identify uniquely the group.
- Parameters:
-
group | The group metadata to update. |
Implements dmlite::Authn.
Update user info. 'name' identify uniquely the user.
- Parameters:
-
user | The user metadata to update. |
Implements dmlite::Authn.
Member Data Documentation
std::string dmlite::BuiltInAuthn::nobody_ |
|
private |
The documentation for this class was generated from the following files: