~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: Lee Bieber
  • Date: 2010-12-09 19:40:05 UTC
  • mfrom: (1991.1.2 build)
  • Revision ID: kalebral@gmail.com-20101209194005-hpxailmc9afmvelh
Remove disabling of drizzleslap test
Merge Shrews - fix bug 683147: Large row affecting statements failing mid-transaction may not get undone properly by TransactionServices if part of multi-message Transaction

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
29
 
31
30
namespace drizzled
32
31
{
33
 
 
34
 
namespace identifier {
35
 
class User;
36
 
 
32
class SecurityContext;
37
33
 
38
34
namespace plugin
39
35
{
49
45
  {}
50
46
  virtual ~Authentication() {}
51
47
 
52
 
  virtual bool authenticate(const identifier::User &sctx,
 
48
  virtual bool authenticate(const SecurityContext &sctx,
53
49
                            const std::string &passwd)= 0;
54
50
 
55
51
  static bool addPlugin(plugin::Authentication *auth);
56
52
  static void removePlugin(plugin::Authentication *auth);
57
 
  static bool isAuthenticated(drizzled::identifier::User::const_shared_ptr sctx,
 
53
  static bool isAuthenticated(const SecurityContext &sctx,
58
54
                              const std::string &password);
59
55
};
60
56