21 #ifndef _THRIFT_TRANSPORT_TSASLSERVERTRANSPORT_H_
22 #define _THRIFT_TRANSPORT_TSASLSERVERTRANSPORT_H_ 1
27 #include <boost/shared_ptr.hpp>
28 #include <boost/thread/mutex.hpp>
29 #include <thrift/transport/TTransport.h>
33 namespace apache {
namespace thrift {
namespace transport {
65 std::map<std::string, std::string>
props_;
71 const std::string& serverName,
const std::string& realm,
72 unsigned flags,
const std::map<std::string, std::string>& props,
73 const std::vector<struct sasl_callback>& callbacks)
89 boost::shared_ptr<TTransport> transport);
105 const std::string& serverName,
106 const std::string& realm,
108 const std::map<std::string, std::string>& props,
109 const std::vector<struct sasl_callback>& callbacks,
110 boost::shared_ptr<TTransport> transport);
115 const std::string& serverName,
116 const std::string& realm,
118 std::map<std::string, std::string> props,
119 std::vector<struct sasl_callback> callbacks) {
123 protocol, serverName, realm, flags, props, callbacks)));
142 const std::string& serverName,
const std::string& realm,
143 unsigned flags, std::map<std::string, std::string> props,
144 std::vector<struct sasl_callback> callbacks)
156 boost::shared_ptr<TTransport> trans);
161 const std::string& serverName,
162 const std::string& realm,
164 std::map<std::string, std::string> props,
165 std::vector<struct sasl_callback> callbacks) {
167 std::pair<std::string, TSaslServerDefinition*>(mechanism,
169 serverName, realm, flags, props, callbacks)));
176 std::map<boost::shared_ptr<TTransport>,
188 #endif // #ifndef _THRIFT_TRANSPORT_TSSLSERVERTRANSPORT_H_
boost::mutex transportMap_mutex_
std::map< boost::shared_ptr< TTransport >, boost::shared_ptr< TBufferedTransport > > transportMap_
const StringSearch UrlParser::protocol_search & protocol
void setSaslServer(sasl::TSasl *saslServer)
virtual void handleSaslStartMessage()
std::map< std::string, TSaslServerDefinition * > serverDefinitionMap_
TSaslServerTransport(const std::map< std::string, TSaslServerDefinition * > &serverMap, boost::shared_ptr< TTransport > transport)
std::map< std::string, std::string > props_
Factory(const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned flags, std::map< std::string, std::string > props, std::vector< struct sasl_callback > callbacks)
void addServerDefinition(const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned int flags, std::map< std::string, std::string > props, std::vector< struct sasl_callback > callbacks)
void addServerDefinition(const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned int flags, std::map< std::string, std::string > props, std::vector< struct sasl_callback > callbacks)
std::vector< struct sasl_callback > callbacks_
TSaslServerDefinition(const std::string &mechanism, const std::string &protocol, const std::string &serverName, const std::string &realm, unsigned flags, const std::map< std::string, std::string > &props, const std::vector< struct sasl_callback > &callbacks)
virtual boost::shared_ptr< TTransport > getTransport(boost::shared_ptr< TTransport > trans)
std::map< std::string, TSaslServerDefinition * > serverDefinitionMap_