1 #ifndef PROTON_CPP_SASL_H
2 #define PROTON_CPP_SASL_H
25 #include "proton/export.hpp"
26 #include "proton/sasl.h"
46 sasl(pn_sasl_t* s) : object_(s) {}
47 PN_CPP_EXTERN
static bool extended();
48 PN_CPP_EXTERN
void done(
enum outcome);
55 PN_CPP_EXTERN std::string
user()
const;
58 PN_CPP_EXTERN std::string
mech()
const;
69 PN_CPP_EXTERN
void allowed_mechs(
const std::string &);
70 PN_CPP_EXTERN
void config_name(
const std::string&);
71 PN_CPP_EXTERN
void config_path(
const std::string&);
79 #endif // PROTON_CPP_SASL_H
Failed due to a system error.
Definition: sasl.hpp:39
Failed due to unrecoverable error.
Definition: sasl.hpp:40
SASL information.
Definition: sasl.hpp:32
Failed due to bad credentials.
Definition: sasl.hpp:38
bool allow_insecure_mechs()
True if insecure mechanisms are permitted.
Authentication succeeded.
Definition: sasl.hpp:37
Failed due to transient error.
Definition: sasl.hpp:41
Negotiation not completed.
Definition: sasl.hpp:36
std::string mech() const
Get the mechanism.
std::string user() const
Get the user name.
outcome
The result of the SASL negotiation.
Definition: sasl.hpp:35
enum outcome outcome() const
Get the outcome.