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