xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/SaslInteraction.h (revision 60ab2ca5c0570c0013b39de285ddaa91fe27d029)
1 // $OpenLDAP: pkg/ldap/contrib/ldapc++/src/SaslInteraction.h,v 1.1.2.2 2008/04/14 23:09:26 quanah Exp $
2 /*
3  * Copyright 2007, OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 #ifndef SASL_INTERACTION_H
8 #define SASL_INTERACTION_H
9 
10 #include <string>
11 #include <sasl/sasl.h>
12 
13 class SaslInteraction {
14     public:
15         SaslInteraction( sasl_interact_t *interact );
16         ~SaslInteraction();
17         unsigned long getId() const;
18         const std::string getPrompt() const;
19         const std::string getChallenge() const;
20         const std::string getDefaultResult() const;
21 
22         void setResult(const std::string &res);
23 
24     private:
25         sasl_interact_t *m_interact;
26         std::string m_result;
27 
28 };
29 #endif /* SASL_INTERACTION_H */
30