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 | |
| virtual bool | restrictSchema (const drizzled::identifier::User &user_ctx, drizzled::identifier::Schema::const_reference schema) |
| virtual bool | restrictProcess (const drizzled::identifier::User &user_ctx, const drizzled::identifier::User &session_ctx) |
| virtual bool | restrictTable (drizzled::identifier::User::const_reference user_ctx, drizzled::identifier::Table::const_reference table) |
| 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 (drizzled::identifier::User::const_reference user_ctx, identifier::Schema::const_reference schema_identifier, bool send_error=true) |
| static bool | isAuthorized (drizzled::identifier::User::const_reference user_ctx, drizzled::identifier::Table::const_reference table_identifier, bool send_error=true) |
| static bool | isAuthorized (drizzled::identifier::User::const_reference user_ctx, const Session &session, bool send_error=true) |
| static void | pruneSchemaNames (drizzled::identifier::User::const_reference user_ctx, identifier::Schema::vector &set_of_schemas) |
| static bool | addPlugin (plugin::Authorization *auth) |
| static void | removePlugin (plugin::Authorization *auth) |
| bool drizzled::plugin::Authorization::addPlugin | ( | plugin::Authorization * | auth | ) | [static, inherited] |
Standard plugin system registration hooks
Definition at line 37 of file authorization.cc.
| bool drizzled::plugin::Authorization::isAuthorized | ( | drizzled::identifier::User::const_reference | user_ctx, |
| drizzled::identifier::Table::const_reference | table_identifier, | ||
| bool | send_error = true |
||
| ) | [static, inherited] |
Server API method for checking table authorization
Definition at line 165 of file authorization.cc.
| bool drizzled::plugin::Authorization::isAuthorized | ( | drizzled::identifier::User::const_reference | user_ctx, |
| identifier::Schema::const_reference | schema_identifier, | ||
| bool | send_error = true |
||
| ) | [static, inherited] |
Server API method for checking schema authorization
Definition at line 134 of file authorization.cc.
Referenced by drizzled::Session::isViewable().
| static bool drizzled::plugin::Authorization::isAuthorized | ( | drizzled::identifier::User::const_reference | user_ctx, |
| const Session & | session, | ||
| bool | send_error = true |
||
| ) | [static, inherited] |
Server API method for checking process authorization
| void drizzled::plugin::Authorization::pruneSchemaNames | ( | drizzled::identifier::User::const_reference | user_ctx, |
| identifier::Schema::vector & | set_of_schemas | ||
| ) | [static, inherited] |
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.
| bool simple_user_policy::Policy::restrictProcess | ( | const drizzled::identifier::User & | user_ctx, |
| const drizzled::identifier::User & | session_ctx | ||
| ) | [inline, virtual] |
Should we restrict the current user's access to see this process?
| Current | security context |
| Database | to check against |
| Table | to check against |
Reimplemented from drizzled::plugin::Authorization.
| bool simple_user_policy::Policy::restrictSchema | ( | const drizzled::identifier::User & | user_ctx, |
| drizzled::identifier::Schema::const_reference | schema | ||
| ) | [inline, virtual] |
Should we restrict the current user's access to this schema?
| Current | security context |
| Database | to check against |
Implements drizzled::plugin::Authorization.
| bool drizzled::plugin::Authorization::restrictTable | ( | drizzled::identifier::User::const_reference | user_ctx, |
| drizzled::identifier::Table::const_reference | table | ||
| ) | [inline, virtual, inherited] |
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 115 of file authorization.h.
References drizzled::plugin::Authorization::restrictSchema().