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