#include <sql_authentication.h>
◆ Cached_authentication_plugins()
Cached_authentication_plugins::Cached_authentication_plugins |
( |
| ) |
|
Cached_authentication_plugins constructor.
Cache plugin_ref for each plugin in cached_plugins_names list
◆ ~Cached_authentication_plugins()
Cached_authentication_plugins::~Cached_authentication_plugins |
( |
| ) |
|
Cached_authentication_plugins destructor.
Releases all plugin_refs
◆ auth_plugin_is_built_in()
static bool Cached_authentication_plugins::auth_plugin_is_built_in |
( |
LEX_CSTRING * |
plugin | ) |
|
|
inlinestatic |
Check if given plugin is a builtin.
- Parameters
-
- Returns
- true if builtin, false otherwise
◆ compare_plugin()
Compare given plugin against one of the cached ones.
- Parameters
-
[in] | plugin_index | Cached plugin index |
[in] | plugin | Plugin to be compared |
- Returns
- status of comparison
- Return values
-
true | Match |
false | Not a match |
◆ get_cached_plugin_ref() [1/2]
Fetch cached plugin handle.
- Parameters
-
plugin_index | Cached plugin index |
- Returns
- cached plugin_ref if found, 0 otherwise
◆ get_cached_plugin_ref() [2/2]
Get plugin_ref if plugin is cached.
- Parameters
-
[in] | plugin | Name of the plugin |
- Returns
- cached plugin_ref if found, 0 otherwise.
◆ get_plugin_name()
static const char * Cached_authentication_plugins::get_plugin_name |
( |
cached_plugins_enum |
plugin_index | ) |
|
|
inlinestatic |
Get name of the plugin at given index.
- Parameters
-
[in] | plugin_index | Cached plugin index |
- Returns
- name of the cached plugin at given index
◆ is_valid()
bool Cached_authentication_plugins::is_valid |
( |
void |
| ) |
|
|
inline |
◆ optimize_plugin_compare_by_pointer()
void Cached_authentication_plugins::optimize_plugin_compare_by_pointer |
( |
LEX_CSTRING * |
plugin | ) |
|
|
static |
Use known pointers for cached plugins to improve comparison time.
- Parameters
-
[in] | plugin | Name of the plugin |
◆ cached_plugins
◆ cached_plugins_names
const LEX_CSTRING Cached_authentication_plugins::cached_plugins_names |
|
static |
Initial value:
#define STRING_WITH_LEN(X)
Definition: string_with_len.h:29
◆ m_valid
bool Cached_authentication_plugins::m_valid |
|
private |
The documentation for this class was generated from the following files: