MongoDB C++ Driver legacy-1.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongo::SaslClientConversation Class Referenceabstract

Abstract class for implementing the clent-side of a SASL mechanism conversation. More...

#include <sasl_client_conversation.h>

+ Inheritance diagram for mongo::SaslClientConversation:

Public Member Functions

 SaslClientConversation (SaslClientSession *saslClientSession)
 Implements the client side of a SASL authentication mechanism.
 
virtual StatusWith< bool > step (const StringData &inputData, std::string *outputData)=0
 Performs one step of the client side of the authentication session, consuming "inputData" and producing "*outputData".
 

Detailed Description

Abstract class for implementing the clent-side of a SASL mechanism conversation.

Constructor & Destructor Documentation

◆ SaslClientConversation()

mongo::SaslClientConversation::SaslClientConversation ( SaslClientSession saslClientSession)
inlineexplicit

Implements the client side of a SASL authentication mechanism.

"saslClientSession" is the corresponding SASLClientSession. "saslClientSession" must stay in scope until the SaslClientConversation's destructor completes.

Member Function Documentation

◆ step()

virtual StatusWith< bool > mongo::SaslClientConversation::step ( const StringData &  inputData,
std::string *  outputData 
)
pure virtual

Performs one step of the client side of the authentication session, consuming "inputData" and producing "*outputData".

A return of Status::OK() indicates successful progress towards authentication. A return of !Status::OK() indicates failed authentication

A return of true means that the authentication process has finished. A return of false means that the authentication process has more steps.

Implemented in mongo::SaslPLAINClientConversation, and mongo::SaslSCRAMSHA1ClientConversation.


The documentation for this class was generated from the following file: