summaryrefslogtreecommitdiffstats
path: root/src/Common/AuthBackend.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-08-27 17:27:58 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-08-27 17:27:58 +0200
commit82ef58fb3d0bdf6ce7d13f42cca30d03b24973c6 (patch)
tree4508a31968224772e70fd9df38f11b3a2461c55e /src/Common/AuthBackend.h
parent854e90be061166d1619a74cbfdc7e384fc700125 (diff)
downloadmad-82ef58fb3d0bdf6ce7d13f42cca30d03b24973c6.tar
mad-82ef58fb3d0bdf6ce7d13f42cca30d03b24973c6.zip
AuthProvider hinzugefügt
AuthBackendFile in AuthProviderFile und AuthBackendPassword aufgeteilt
Diffstat (limited to 'src/Common/AuthBackend.h')
-rw-r--r--src/Common/AuthBackend.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Common/AuthBackend.h b/src/Common/AuthBackend.h
index d916d1d..3fe3840 100644
--- a/src/Common/AuthBackend.h
+++ b/src/Common/AuthBackend.h
@@ -32,17 +32,18 @@ namespace Common {
class AuthContext;
class AuthManager;
+class AuthProvider;
class AuthBackend {
protected:
friend class AuthManager;
- virtual const std::vector<std::string>& getMethods() const = 0;
- virtual const std::vector<std::string>& getSubMethods(const std::string &method) const throw(Core::Exception) = 0;
+ virtual const std::string& getMethodName() const = 0;
+ virtual std::vector<std::string> getSubMethods(boost::shared_ptr<AuthProvider> provider) const = 0;
- virtual boost::shared_ptr<AuthContext> authenticate(const std::string& /*method*/, const std::string& /*subMethod*/,
- const std::string& /*user*/, const std::vector<boost::uint8_t>& /*data*/, std::vector<boost::uint8_t>& /*response*/,
- boost::shared_ptr<AuthContext> /*context*/) throw(Core::Exception) = 0;
+ virtual boost::shared_ptr<AuthContext> authenticate(boost::shared_ptr<AuthProvider> provider, const std::string &subMethod,
+ const std::string &user, const std::vector<boost::uint8_t> &data, std::vector<boost::uint8_t> &response,
+ boost::shared_ptr<AuthContext> context) throw(Core::Exception) = 0;
public:
virtual ~AuthBackend() {}