Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
authentication.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Definitions required for Authentication plugin
5
*
6
* Copyright (C) 2008 Sun Microsystems, Inc.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; version 2 of the License.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#pragma once
23
24
#include <string>
25
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
35
{
36
public
:
37
explicit
Authentication
(std::string name_arg)
38
:
Plugin
(name_arg,
"Authentication"
)
39
{}
40
virtual
bool
authenticate(
const
identifier::User
&,
const
std::string &passwd)= 0;
41
42
static
bool
addPlugin(
plugin::Authentication
*);
43
static
void
removePlugin(
plugin::Authentication
*);
44
static
bool
isAuthenticated(
const
drizzled::identifier::User
&,
const
std::string &password);
45
};
46
47
}
/* namespace plugin */
48
}
/* namespace drizzled */
49
drizzled::identifier::User
A set of Session members describing the current authenticated user.
Definition:
user.h:34
drizzled::plugin::Plugin
Definition:
plugin.h:34
DRIZZLED_API
#define DRIZZLED_API
Definition:
visibility.h:62
drizzled::plugin::Authentication
Definition:
authentication.h:34
visibility.h
Visibility Control Macros.
drizzled
plugin
authentication.h
Generated on Fri May 23 2014 13:09:14 for drizzle by
1.8.7