1/*	$NetBSD: SaslInteraction.h,v 1.1.1.2 2010/03/08 02:14:14 lukem Exp $	*/
2
3// OpenLDAP: pkg/ldap/contrib/ldapc++/src/SaslInteraction.h,v 1.1.2.2 2008/04/14 23:09:26 quanah Exp
4/*
5 * Copyright 2007, 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
15class 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