~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: Diego Medina
  • Date: 2009-10-05 04:05:29 UTC
  • mfrom: (1161 staging)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: diego.medina@sun.com-20091005040529-5g1qe9gxzslpgefd
resolved small merge issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 
 
3
 *
4
4
 *  Definitions required for Authentication plugin
5
 
 
6
5
 *
7
6
 *  Copyright (C) 2008 Sun Microsystems
8
7
 *
20
19
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
20
 */
22
21
 
23
 
/*
24
 
  Definitions required for Authentication plugin
25
 
*/
26
 
 
27
22
#ifndef DRIZZLED_PLUGIN_AUTHENTICATION_H
28
23
#define DRIZZLED_PLUGIN_AUTHENTICATION_H
29
24
 
 
25
namespace drizzled
 
26
{
 
27
namespace plugin
 
28
{
 
29
 
30
30
class Authentication
31
31
{
32
32
public:
35
35
 
36
36
  virtual bool authenticate(Session *, const char *)= 0;
37
37
 
 
38
  static bool addPlugin(plugin::Authentication *auth);
 
39
  static void removePlugin(plugin::Authentication *auth);
 
40
  static bool isAuthenticated(Session *session, const char *password);
38
41
};
39
42
 
 
43
} /* namespace plugin */
 
44
} /* namespace drizzled */
 
45
 
40
46
#endif /* DRIZZLED_PLUGIN_AUTHENTICATION_H */