Back to index

openldap  2.4.31
SaslInteraction.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2007-2012 The 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 */