MySQL 9.1.0
Source Code Documentation
authentication_policy Namespace Reference

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...
 

Detailed Description

namespace for authentication policy

Typedef Documentation

◆ Factors

using authentication_policy::Factors = typedef std::vector<Factor>

Type of container with authentication policy factors.

Function Documentation

◆ deinit()

void authentication_policy::deinit ( )

Deinitialize authentication policy.

Component deinitialization.

◆ get_first_factor_default_plugin() [1/2]

void authentication_policy::get_first_factor_default_plugin ( MEM_ROOT mem_root,
LEX_CSTRING name 
)
inline

Get copy of default plugin name.

Parameters
mem_root[in] place to allocate the name
name[out] copy of the name

◆ get_first_factor_default_plugin() [2/2]

void authentication_policy::get_first_factor_default_plugin ( std::string &  name)
inline

Get copy of first factor default plugin name.

Parameters
name[out] copy of the name

◆ get_policy_factors()

void authentication_policy::get_policy_factors ( Factors factors)
inline

Get copy of the authentication policy factors.

The aim is to work is with consistent snapshot of the factor avoiding long time locking.

Parameters
factors[out] authentication policy factors

◆ init()

int authentication_policy::init ( const char *  opt_authentication_policy)

Initialize authentication policy.

Parameters
opt_authentication_policy[in] value of authentication_policy sysvar
Return values
0success
non0 failure;

◆ policy_update()

bool authentication_policy::policy_update ( const char *  new_policy)
inline

Validate @authentication_policy variable value.

Parameters
[in]new_policythe new value of the variable.
Return values
falsesuccess
truefailure

◆ policy_validate()

bool authentication_policy::policy_validate ( const char *  new_policy)
inline

Validate @authentication_policy variable value.

Parameters
[in]new_policythe new value of the variable.
Return values
falsesuccess
truefailure

◆ trim()

static void authentication_policy::trim ( std::string &  str)
inlinestatic