#include <security.h>
Public Member Functions | |
AuthenticationInfo () | |
void | authorize (const string &dbname) |
void | authorizeReadOnly (const string &dbname) |
bool | isAuthorized (const string &dbname) |
bool | isAuthorizedForLock (const string &dbname, int lockType) |
bool | isAuthorizedReads (const string &dbname) |
void | logout (const string &dbname) |
void | print () |
~AuthenticationInfo () | |
Public Attributes | |
bool | isLocalHost |
Protected Member Functions | |
bool | _isAuthorized (const string &dbname, int level) |
bool | _isAuthorizedSpecialChecks (const string &dbname) |
Private Attributes | |
mongo::mutex | _lock |
map< string, Auth > | m |
Static Private Attributes | |
static int | warned |
Definition at line 33 of file security.h.
mongo::AuthenticationInfo::AuthenticationInfo | ( | ) | [inline] |
Definition at line 39 of file security.h.
mongo::AuthenticationInfo::~AuthenticationInfo | ( | ) | [inline] |
Definition at line 40 of file security.h.
bool mongo::AuthenticationInfo::_isAuthorized | ( | const string & | dbname, | |
int | level | |||
) | [inline, protected] |
Definition at line 61 of file security.h.
bool mongo::AuthenticationInfo::_isAuthorizedSpecialChecks | ( | const string & | dbname | ) | [protected] |
void mongo::AuthenticationInfo::authorize | ( | const string & | dbname | ) | [inline] |
Definition at line 46 of file security.h.
void mongo::AuthenticationInfo::authorizeReadOnly | ( | const string & | dbname | ) | [inline] |
Definition at line 50 of file security.h.
bool mongo::AuthenticationInfo::isAuthorized | ( | const string & | dbname | ) | [inline] |
Definition at line 54 of file security.h.
bool mongo::AuthenticationInfo::isAuthorizedForLock | ( | const string & | dbname, | |
int | lockType | |||
) | [inline] |
Definition at line 56 of file security.h.
bool mongo::AuthenticationInfo::isAuthorizedReads | ( | const string & | dbname | ) | [inline] |
Definition at line 55 of file security.h.
void mongo::AuthenticationInfo::logout | ( | const string & | dbname | ) | [inline] |
Definition at line 42 of file security.h.
void mongo::AuthenticationInfo::print | ( | ) |
mongo::mutex mongo::AuthenticationInfo::_lock [private] |
Definition at line 34 of file security.h.
Definition at line 38 of file security.h.
map<string, Auth> mongo::AuthenticationInfo::m [private] |
Definition at line 35 of file security.h.
int mongo::AuthenticationInfo::warned [static, private] |
Definition at line 36 of file security.h.