1 #ifndef PROTON_SASL_HPP
2 #define PROTON_SASL_HPP
25 #include "./internal/export.hpp"
26 #include "./internal/config.hpp"
27 #include "./internal/object.hpp"
29 #include <proton/sasl.h>
38 sasl(pn_sasl_t* s) : object_(s) {}
42 #if PN_CPP_HAS_DELETED_FUNCTIONS
45 sasl& operator=(
const sasl&) =
delete;
48 #if PN_CPP_HAS_DEFAULTED_FUNCTIONS
68 PN_CPP_EXTERN std::string
user()
const;
71 PN_CPP_EXTERN std::string
mech()
const;
75 pn_sasl_t*
const object_;
77 friend class internal::factory<
sasl>;
83 #endif // PROTON_SASL_HPP
Failed due to a system error.
Definition: sasl.hpp:59
Failed due to unrecoverable error.
Definition: sasl.hpp:60
SASL information.
Definition: sasl.hpp:36
Failed due to bad credentials.
Definition: sasl.hpp:58
Authentication succeeded.
Definition: sasl.hpp:57
Failed due to transient error.
Definition: sasl.hpp:61
Negotiation not completed.
Definition: sasl.hpp:56
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:55
enum outcome outcome() const
Get the outcome.