22 #include "mongo/base/disallow_copying.h"
23 #include "mongo/base/status.h"
24 #include "mongo/base/string_data.h"
25 #include "mongo/client/sasl_client_conversation.h"
26 #include "mongo/crypto/mechanism_scram.h"
61 StatusWith<bool> _secondStep(
const std::vector<std::string>& input, std::string* outputData);
66 StatusWith<bool> _thirdStep(
const std::vector<std::string>& input, std::string* outputData);
69 std::string _authMessage;
70 unsigned char _saltedPassword[scram::hashSize];
73 std::string _clientNonce;
Client side authentication session for SASL PLAIN.
Definition: sasl_scramsha1_client_conversation.h:32
A StringData object wraps a 'const string&' or a 'const char*' without copying its contents...
Definition: string_data.h:43
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
Base class for the client side of a SASL authentication conversation.
Definition: sasl_client_session.h:42
SaslSCRAMSHA1ClientConversation(SaslClientSession *saslClientSession)
Implements the client side of a SASL PLAIN mechanism session.
Definition: status_with.h:43
virtual StatusWith< bool > step(const StringData &inputData, std::string *outputData)
Takes one step in a SCRAM-SHA-1 conversation.
Abstract class for implementing the clent-side of a SASL mechanism conversation.
Definition: sasl_client_conversation.h:34