MySQL 9.1.0
Source Code Documentation
|
Factory for creating any Security_context given a pre-constructed policy. More...
#include <auth_common.h>
Public Member Functions | |
Security_context_factory (THD *thd, std::string user, std::string host, Security_context_functor extend_user_profile, Security_context_functor priv, Security_context_functor static_priv, std::function< void(Security_context *)> drop_policy) | |
Default Security_context factory implementation. More... | |
Sctx_ptr< Security_context > | create () |
Private Member Functions | |
bool | apply_pre_constructed_policies (Security_context *sctx) |
Private Attributes | |
THD * | m_thd |
std::string | m_user |
std::string | m_host |
Security_context_functor | m_user_profile |
Security_context_functor | m_privileges |
Security_context_functor | m_static_privileges |
const std::function< void(Security_context *)> | m_drop_policy |
Factory for creating any Security_context given a pre-constructed policy.
|
inline |
Default Security_context factory implementation.
Given two policies and a authid this class returns a Security_context.
thd | The thread handle |
user | User name associated with auth id |
host | Host name associated with auth id |
extend_user_profile | The policy for creating the user profile |
priv | The policy for authorizing the authid to use the server. |
static_priv | Static privileges for authid. |
drop_policy | The policy for deleting the authid and revoke privileges |
|
private |
Sctx_ptr< Security_context > Security_context_factory::create | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |