8#ifndef INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATION_H_
9#define INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATION_H_
13#if !defined _WIN32 && !defined _WIN64
17#define SASL_CB_USER 0x4001
18#define SASL_CB_AUTHNAME 0x4002
19#define SASL_CB_PASS 0x4004
20#define SASL_CB_GETREALM 0x4008
21#define SASL_CB_GETPATH 0x0003
22#define SASL_CB_LIST_END 0x0000
25#define SASL_BADPARAM -7
27typedef struct sasl_callback {
39typedef struct sasl_secret {
41 unsigned char data[1];
58 : enabled(enabled), callbackHandler(callbackHandler), saslMechanism(saslMechanism), serverFQDN(serverFQDN) {}
73 return callbackHandler;
85 std::vector<sasl_callback_t> callbackHandler;
86 std::string saslMechanism;
87 std::string serverFQDN;
Definition: AuthenticationConfiguration.h:55
const std::string & getServerFqdn() const
Definition: AuthenticationConfiguration.h:79
const std::string & getSaslMechanism() const
Definition: AuthenticationConfiguration.h:65
const std::vector< sasl_callback_t > & getCallbackHandler() const
Definition: AuthenticationConfiguration.h:72
AuthenticationConfiguration(std::vector< sasl_callback_t > callbackHandler, bool enabled, std::string saslMechanism, std::string serverFQDN)
Definition: AuthenticationConfiguration.h:57
AuthenticationConfiguration()
Definition: AuthenticationConfiguration.h:59
bool isEnabled() const
Definition: AuthenticationConfiguration.h:60
int(* sasl_callback_ft)(void)
Definition: AuthenticationConfiguration.h:46
Definition: AuthenticationConfiguration.h:10