summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-07-23 17:36:06 -0400
committerSpencer T Brody <spencer@10gen.com>2013-07-30 17:50:33 -0400
commit30817e8bec4fcebf9b2fa0e272ce0a37b9b3862f (patch)
treeedce8dfc4b21cb5b98cf3d167753cca9d89cde22 /src/mongo/db/auth/user.h
parent6211f4436abfff2fe1154302fa352b104464120e (diff)
downloadmongo-30817e8bec4fcebf9b2fa0e272ce0a37b9b3862f.tar.gz
SERVER-9518 Use User cache to get credential information for authentication check
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r--src/mongo/db/auth/user.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h
index 3795e3f4c6d..0e164797d33 100644
--- a/src/mongo/db/auth/user.h
+++ b/src/mongo/db/auth/user.h
@@ -63,6 +63,11 @@ namespace mongo {
const RoleNameIterator getRoles() const;
/**
+ * Returns the CredentialData for this user.
+ */
+ const CredentialData& getCredentials() const;
+
+ /**
* Gets the set of actions this user is allowed to perform on the given resource.
*/
const ActionSet getActionsForResource(const std::string& resource) const;