~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: kalebral at gmail
  • Date: 2010-12-18 04:43:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2010.
  • Revision ID: kalebral@gmail.com-20101218044340-og61cyjogqwp0k0o
update Copyright strings to a more common format to help with creating the master debian copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "drizzled/plugin.h"
28
28
#include "drizzled/plugin/plugin.h"
29
 
#include "drizzled/identifier.h"
30
 
 
31
 
#include "drizzled/visibility.h"
32
29
 
33
30
namespace drizzled
34
31
{
35
 
 
36
 
namespace identifier {
37
 
class User;
38
 
 
32
class SecurityContext;
39
33
 
40
34
namespace plugin
41
35
{
42
36
 
43
 
class DRIZZLED_API Authentication : public Plugin
 
37
class Authentication : public Plugin
44
38
{
45
39
  Authentication();
46
40
  Authentication(const Authentication &);
51
45
  {}
52
46
  virtual ~Authentication() {}
53
47
 
54
 
  virtual bool authenticate(const identifier::User &sctx,
 
48
  virtual bool authenticate(const SecurityContext &sctx,
55
49
                            const std::string &passwd)= 0;
56
50
 
57
51
  static bool addPlugin(plugin::Authentication *auth);
58
52
  static void removePlugin(plugin::Authentication *auth);
59
 
  static bool isAuthenticated(drizzled::identifier::User::const_shared_ptr sctx,
 
53
  static bool isAuthenticated(const SecurityContext &sctx,
60
54
                              const std::string &password);
61
55
};
62
56