Public Types | |
typedef std::pair< const std::string, const std::string > | map_key |
typedef std::map< const map_key, plugin::Plugin * > | map |
typedef std::vector< Plugin * > | vector |
Public Member Functions | |
Authorization (std::string name_arg) | |
virtual bool | restrictSchema (const drizzled::identifier::User &user_ctx, const identifier::Schema &schema)=0 |
virtual bool | restrictTable (const drizzled::identifier::User &user_ctx, const drizzled::identifier::Table &table) |
virtual bool | restrictProcess (const drizzled::identifier::User &user_ctx, const drizzled::identifier::User &session_ctx) |
virtual void | shutdownPlugin () |
virtual void | prime () |
virtual void | startup (drizzled::Session &) |
void | activate () |
void | deactivate () |
bool | isActive () const |
const std::string & | getName () const |
void | setModule (module::Module *module) |
const std::string & | getTypeName () const |
virtual bool | removeLast () const |
const std::string & | getModuleName () const |
Static Public Member Functions | |
static bool | isAuthorized (const drizzled::identifier::User &user_ctx, const identifier::Schema &schema_identifier, bool send_error=true) |
static bool | isAuthorized (const drizzled::identifier::User &user_ctx, const drizzled::identifier::Table &table_identifier, bool send_error=true) |
static bool | isAuthorized (const drizzled::identifier::User &user_ctx, const Session &session, bool send_error=true) |
static void | pruneSchemaNames (const drizzled::identifier::User &user_ctx, identifier::schema::vector &set_of_schemas) |
static bool | addPlugin (plugin::Authorization *auth) |
static void | removePlugin (plugin::Authorization *auth) |
Definition at line 39 of file authorization.h.
|
static |
Standard plugin system registration hooks
Definition at line 37 of file authorization.cc.
|
static |
Server API method for checking schema authorization
Definition at line 134 of file authorization.cc.
Referenced by drizzled::Session::isViewable().
|
static |
Server API method for checking table authorization
Definition at line 165 of file authorization.cc.
|
static |
Server API method for checking process authorization
Definition at line 195 of file authorization.cc.
|
static |
Server API helper method for applying authorization tests to a set of schema names (for use in the context of getSchemaNames
Definition at line 232 of file authorization.cc.
|
inlinevirtual |
Should we restrict the current user's access to see this process?
Current | security context |
Database | to check against |
Table | to check against |
Reimplemented in regex_policy::Policy, and simple_user_policy::Policy.
Definition at line 117 of file authorization.h.
|
pure virtual |
Should we restrict the current user's access to this schema?
Current | security context |
Database | to check against |
Implemented in regex_policy::Policy, and simple_user_policy::Policy.
Referenced by restrictTable().
|
inlinevirtual |
Should we restrict the current user's access to this table?
Current | security context |
Database | to check against |
Table | to check against |
Reimplemented in regex_policy::Policy.
Definition at line 111 of file authorization.h.
References restrictSchema().