00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _SaslAuthenticator_
00022 #define _SaslAuthenticator_
00023
00024 #include "qpid/framing/amqp_types.h"
00025 #include "qpid/framing/AMQP_ClientProxy.h"
00026 #include "qpid/Exception.h"
00027 #include <memory>
00028
00029 namespace qpid {
00030 namespace broker {
00031
00032 class Connection;
00033
00034 class SaslAuthenticator
00035 {
00036 public:
00037 virtual ~SaslAuthenticator() {}
00038 virtual void getMechanisms(framing::Array& mechanisms) = 0;
00039 virtual void start(const std::string& mechanism, const std::string& response) = 0;
00040 virtual void step(const std::string& response) = 0;
00041
00042 static std::auto_ptr<SaslAuthenticator> createAuthenticator(Connection& connection);
00043 };
00044
00045 }}
00046
00047 #endif