16 #include "mongo/client/sasl_client_session.h"
18 #include <sasl/sasl.h>
56 static const int maxCallbacks = 4;
59 sasl_conn_t* _saslConnection;
68 boost::scoped_array<char> _secret;
72 sasl_callback_t _callbacks[maxCallbacks];
Status represents an error state or the absence thereof.
Definition: status.h:50
virtual void setParameter(Parameter id, const StringData &value)
Overriding to store the password data in sasl_secret_t format.
Parameter
Identifiers of parameters used to configure a SaslClientSession.
Definition: sasl_client_session.h:52
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
virtual Status initialize()
Initializes a session for use.
Base class for the client side of a SASL authentication conversation.
Definition: sasl_client_session.h:42
virtual bool isDone() const
Returns true if the authentication completed successfully.
Definition: cyrus_sasl_client_session.h:50
sasl_secret_t * getPasswordAsSecret()
Returns the value of the parameterPassword parameter in the form of a sasl_secret_t, used by the Cyrus SASL library's SASL_CB_PASS callback.
virtual Status step(const StringData &inputData, std::string *outputData)
Takes one step of the SASL protocol on behalf of the client.
Implementation of the client side of a SASL authentication conversation.
Definition: cyrus_sasl_client_session.h:26