summaryrefslogtreecommitdiffstats
path: root/src/Common/AuthManager.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-27 19:58:24 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-27 19:58:24 +0200
commitb40ba0cf91603b695f1f2380cbd39966a458f22f (patch)
tree1fec48ddc59eb1392fac38495b230e4b2cbf7528 /src/Common/AuthManager.h
parente1d8490f0654a3da0b900407d80d91d8d0da68c8 (diff)
downloadmad-b40ba0cf91603b695f1f2380cbd39966a458f22f.tar
mad-b40ba0cf91603b695f1f2380cbd39966a458f22f.zip
Use Unicode-aware String class instead of std::string
Diffstat (limited to 'src/Common/AuthManager.h')
-rw-r--r--src/Common/AuthManager.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Common/AuthManager.h b/src/Common/AuthManager.h
index e45762a..0c249ad 100644
--- a/src/Common/AuthManager.h
+++ b/src/Common/AuthManager.h
@@ -48,8 +48,8 @@ class MAD_COMMON_EXPORT AuthManager : private boost::noncopyable {
boost::shared_ptr<AuthProvider> provider;
- std::set<std::string> methods;
- std::map<std::string, boost::shared_ptr<AuthBackend> > backends;
+ std::set<Core::String> methods;
+ std::map<Core::String, boost::shared_ptr<AuthBackend> > backends;
boost::shared_mutex mutex;
@@ -62,11 +62,11 @@ class MAD_COMMON_EXPORT AuthManager : private boost::noncopyable {
void registerBackend(boost::shared_ptr<AuthBackend> backend);
void unregisterBackend(boost::shared_ptr<AuthBackend> backend);
- std::set<std::string> getMethods();
- std::vector<std::string> getSubMethods(const std::string &method) throw(Core::Exception);
+ const std::set<Core::String>& getMethods();
+ std::vector<Core::String> getSubMethods(const Core::String &method) throw(Core::Exception);
- 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> authenticate(const Core::String &method, const Core::String &subMethod,
+ const Core::String &user, const std::vector<boost::uint8_t> &data, std::vector<boost::uint8_t> &response,
boost::shared_ptr<AuthContext> context = boost::shared_ptr<AuthContext>()) throw(Core::Exception);
};