Back to index

openldap  2.4.31
Public Member Functions | Private Attributes
SaslInteraction Class Reference

#include <SaslInteraction.h>

Collaboration diagram for SaslInteraction:
Collaboration graph

List of all members.

Public Member Functions

 SaslInteraction (sasl_interact_t *interact)
 ~SaslInteraction ()
unsigned long getId () const
const std::string getPrompt () const
const std::string getChallenge () const
const std::string getDefaultResult () const
void setResult (const std::string &res)

Private Attributes

sasl_interact_t * m_interact
std::string m_result

Detailed Description

Definition at line 13 of file SaslInteraction.h.

Constructor & Destructor Documentation

SaslInteraction::SaslInteraction ( sasl_interact_t *  interact)

Definition at line 11 of file SaslInteraction.cpp.

Definition at line 14 of file SaslInteraction.cpp.

    DEBUG(LDAP_DEBUG_TRACE, "SaslInteraction::~SaslInteraction()" << std::endl);

Member Function Documentation

const std::string SaslInteraction::getChallenge ( ) const

Definition at line 29 of file SaslInteraction.cpp.

    return std::string(m_interact->challenge);

Definition at line 34 of file SaslInteraction.cpp.

    return std::string(m_interact->defresult);

Definition at line 19 of file SaslInteraction.cpp.

    return m_interact->id;
const std::string SaslInteraction::getPrompt ( ) const

Definition at line 24 of file SaslInteraction.cpp.

    return std::string(m_interact->prompt);
void SaslInteraction::setResult ( const std::string &  res)

Definition at line 39 of file SaslInteraction.cpp.

    m_result = res;
    m_interact->result =;
    m_interact->len = m_result.size();

Member Data Documentation

sasl_interact_t* SaslInteraction::m_interact [private]

Definition at line 25 of file SaslInteraction.h.

std::string SaslInteraction::m_result [private]

Definition at line 26 of file SaslInteraction.h.

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