~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
20
 */
21
21
 
22
 
#ifndef DRIZZLED_PLUGIN_AUTHENTICATION_H
23
 
#define DRIZZLED_PLUGIN_AUTHENTICATION_H
 
22
#pragma once
24
23
 
25
24
#include <string>
26
25
 
27
 
#include "drizzled/plugin.h"
28
 
#include "drizzled/plugin/plugin.h"
29
 
#include "drizzled/identifier.h"
30
 
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
namespace identifier {
35
 
class User;
36
 
37
 
 
38
 
namespace plugin
39
 
{
40
 
 
41
 
class Authentication : public Plugin
 
26
#include <drizzled/plugin.h>
 
27
#include <drizzled/plugin/plugin.h>
 
28
#include <drizzled/identifier.h>
 
29
#include <drizzled/visibility.h>
 
30
 
 
31
namespace drizzled {
 
32
namespace plugin {
 
33
 
 
34
class DRIZZLED_API Authentication : public Plugin
42
35
{
43
36
  Authentication();
44
37
  Authentication(const Authentication &);
54
47
 
55
48
  static bool addPlugin(plugin::Authentication *auth);
56
49
  static void removePlugin(plugin::Authentication *auth);
57
 
  static bool isAuthenticated(drizzled::identifier::User::const_shared_ptr sctx,
 
50
  static bool isAuthenticated(const drizzled::identifier::User& sctx,
58
51
                              const std::string &password);
59
52
};
60
53
 
61
54
} /* namespace plugin */
62
55
} /* namespace drizzled */
63
56
 
64
 
#endif /* DRIZZLED_PLUGIN_AUTHENTICATION_H */