ldapsdk 0.0.1
|
00001 // $OpenLDAP$ 00002 /* 00003 * Copyright 2007, OpenLDAP Foundation, All Rights Reserved. 00004 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 00005 */ 00006 00007 #ifndef SASL_INTERACTION_H 00008 #define SASL_INTERACTION_H 00009 00010 #include <string> 00011 #include <sasl/sasl.h> 00012 00013 class SaslInteraction { 00014 public: 00015 SaslInteraction( sasl_interact_t *interact ); 00016 ~SaslInteraction(); 00017 unsigned long getId() const; 00018 const std::string getPrompt() const; 00019 const std::string getChallenge() const; 00020 const std::string getDefaultResult() const; 00021 00022 void setResult(const std::string &res); 00023 00024 private: 00025 sasl_interact_t *m_interact; 00026 std::string m_result; 00027 00028 }; 00029 #endif /* SASL_INTERACTION_H */