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 66 PN_CPP_EXTERN std::string
user()
const;
69 PN_CPP_EXTERN std::string
mech()
const;
73 pn_sasl_t*
const object_;
75 friend class internal::factory<
sasl>;
81 #endif // PROTON_SASL_HPP Failed due to a system error.
Definition: sasl.hpp:57
Failed due to unrecoverable error.
Definition: sasl.hpp:58
SASL information.
Definition: sasl.hpp:36
Failed due to bad credentials.
Definition: sasl.hpp:56
Authentication succeeded.
Definition: sasl.hpp:55
Failed due to transient error.
Definition: sasl.hpp:59
Negotiation not completed.
Definition: sasl.hpp:54
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:53
enum outcome outcome() const
Get the outcome.
Type traits for mapping between AMQP and C++ types.
Definition: annotation_key.hpp:28