1 #ifndef PROTON_SASL_HPP
2 #define PROTON_SASL_HPP
25 #include "./internal/export.hpp"
26 #include "./internal/object.hpp"
28 #include <proton/sasl.h>
40 sasl(pn_sasl_t* s) : object_(s) {}
60 PN_CPP_EXTERN std::string
user()
const;
63 PN_CPP_EXTERN std::string
mech()
const;
67 pn_sasl_t*
const object_;
SASL information.
Definition: sasl.hpp:38
std::string user() const
Get the user name.
std::string mech() const
Get the mechanism.
outcome
The result of the SASL negotiation.
Definition: sasl.hpp:47
@ OK
Authentication succeeded.
Definition: sasl.hpp:49
@ TEMP
Failed due to transient error.
Definition: sasl.hpp:53
@ SYS
Failed due to a system error.
Definition: sasl.hpp:51
@ AUTH
Failed due to bad credentials.
Definition: sasl.hpp:50
@ NONE
Negotiation not completed.
Definition: sasl.hpp:48
@ PERM
Failed due to unrecoverable error.
Definition: sasl.hpp:52
A network channel supporting an AMQP connection.
Definition: transport.hpp:37
The main Proton namespace.
Definition: annotation_key.hpp:33