8 #ifndef INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATION_H_
9 #define INCLUDE_INFINISPAN_HOTROD_AUTHENTICATIONCONFIGURATION_H_
10 namespace infinispan {
13 #if !defined _WIN32 && !defined _WIN64
14 #include "sasl/sasl.h"
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
27 typedef struct sasl_callback {
39 typedef 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;
const std::string & getSaslMechanism() const
Definition: AuthenticationConfiguration.h:65
Definition: AuthenticationConfiguration.h:54
bool isEnabled() const
Definition: AuthenticationConfiguration.h:60
const std::vector< sasl_callback_t > & getCallbackHandler() const
Definition: AuthenticationConfiguration.h:72
const std::string & getServerFqdn() const
Definition: AuthenticationConfiguration.h:79
AuthenticationConfiguration()
Definition: AuthenticationConfiguration.h:59
AuthenticationConfiguration(std::vector< sasl_callback_t > callbackHandler, bool enabled, std::string saslMechanism, std::string serverFQDN)
Definition: AuthenticationConfiguration.h:57
int(* sasl_callback_ft)(void)
Definition: AuthenticationConfiguration.h:46