summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/mongo_authentication_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/mongo_authentication_session.h')
-rw-r--r--src/mongo/db/auth/mongo_authentication_session.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/mongo/db/auth/mongo_authentication_session.h b/src/mongo/db/auth/mongo_authentication_session.h
index 19d2c44d387..e60bcf6ac85 100644
--- a/src/mongo/db/auth/mongo_authentication_session.h
+++ b/src/mongo/db/auth/mongo_authentication_session.h
@@ -31,24 +31,27 @@
namespace mongo {
- typedef unsigned long long nonce64;
-
- /**
- * Authentication session data for a nonce-challenge-response authentication of the
- * type used in the Mongo nonce-authenticate protocol.
- *
- * The only session data is the nonce sent to the client.
- */
- class MongoAuthenticationSession : public AuthenticationSession {
- MONGO_DISALLOW_COPYING(MongoAuthenticationSession);
- public:
- explicit MongoAuthenticationSession(nonce64 nonce);
- virtual ~MongoAuthenticationSession();
-
- nonce64 getNonce() const { return _nonce; }
-
- private:
- const nonce64 _nonce;
- };
+typedef unsigned long long nonce64;
+
+/**
+ * Authentication session data for a nonce-challenge-response authentication of the
+ * type used in the Mongo nonce-authenticate protocol.
+ *
+ * The only session data is the nonce sent to the client.
+ */
+class MongoAuthenticationSession : public AuthenticationSession {
+ MONGO_DISALLOW_COPYING(MongoAuthenticationSession);
+
+public:
+ explicit MongoAuthenticationSession(nonce64 nonce);
+ virtual ~MongoAuthenticationSession();
+
+ nonce64 getNonce() const {
+ return _nonce;
+ }
+
+private:
+ const nonce64 _nonce;
+};
} // namespace mongo