openldap/contrib/ldapc++/src/SaslInteraction.h
Quanah Gibson-Mount 1df85d3427 Happy New Year!
2017-01-03 12:36:47 -08:00

29 lines
704 B
C++

// $OpenLDAP$
/*
* Copyright 2007-2017 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#ifndef SASL_INTERACTION_H
#define SASL_INTERACTION_H
#include <string>
#include <sasl/sasl.h>
class SaslInteraction {
public:
SaslInteraction( sasl_interact_t *interact );
~SaslInteraction();
unsigned long getId() const;
const std::string getPrompt() const;
const std::string getChallenge() const;
const std::string getDefaultResult() const;
void setResult(const std::string &res);
private:
sasl_interact_t *m_interact;
std::string m_result;
};
#endif /* SASL_INTERACTION_H */