![]() |
MySQL 9.5.0
Source Code Documentation
|
namespace for authentication policy More...
Classes | |
| class | Factor |
| Class representing authenticalion policy factor. More... | |
| class | Policy |
| Class representing authentication policy. More... | |
Typedefs | |
| using | Factors = std::vector< Factor > |
| Type of container with authentication policy factors. More... | |
Functions | |
| static void | trim (std::string &str) |
| int | init (const char *opt_authentication_policy) |
| Initialize authentication policy. More... | |
| void | deinit () |
| Deinitialize authentication policy. More... | |
| bool | policy_validate (const char *new_policy) |
| Validate @authentication_policy variable value. More... | |
| bool | policy_update (const char *new_policy) |
| Validate @authentication_policy variable value. More... | |
| void | get_policy_factors (Factors &factors) |
| Get copy of the authentication policy factors. More... | |
| void | get_first_factor_default_plugin (std::string &name) |
| Get copy of first factor default plugin name. More... | |
| void | get_first_factor_default_plugin (MEM_ROOT *mem_root, LEX_CSTRING *name) |
| Get copy of default plugin name. More... | |
namespace for authentication policy
| using authentication_policy::Factors = typedef std::vector<Factor> |
Type of container with authentication policy factors.
| void authentication_policy::deinit | ( | ) |
Deinitialize authentication policy.
Component deinitialization.
|
inline |
Get copy of default plugin name.
| mem_root | [in] place to allocate the name |
| name | [out] copy of the name |
|
inline |
Get copy of first factor default plugin name.
| name | [out] copy of the name |
|
inline |
Get copy of the authentication policy factors.
The aim is to work is with consistent snapshot of the factor avoiding long time locking.
| factors | [out] authentication policy factors |
| int authentication_policy::init | ( | const char * | opt_authentication_policy | ) |
Initialize authentication policy.
| opt_authentication_policy | [in] value of authentication_policy sysvar |
| 0 | success |
| non | 0 failure; |
|
inline |
Validate @authentication_policy variable value.
| [in] | new_policy | the new value of the variable. |
| false | success |
| true | failure |
|
inline |
Validate @authentication_policy variable value.
| [in] | new_policy | the new value of the variable. |
| false | success |
| true | failure |
|
inlinestatic |