MySQL 8.4.3
Source Code Documentation
|
Storage container for default auth ids. More...
#include <auth_common.h>
Public Member Functions | |
Auth_id () | |
Auth_id (const char *user, size_t user_len, const char *host, size_t host_len) | |
Auth_id (const Auth_id_ref &id) | |
Auth_id (const LEX_CSTRING &user, const LEX_CSTRING &host) | |
Auth_id (const std::string &user, const std::string &host) | |
Auth_id (const LEX_USER *lex_user) | |
Auth_id (const ACL_USER *acl_user) | |
~Auth_id () | |
Auth_id (const Auth_id &id) | |
Auth_id & | operator= (const Auth_id &)=default |
bool | operator< (const Auth_id &id) const |
void | auth_str (std::string *out) const |
Output Auth_id in user<at>host format. More... | |
std::string | auth_str () const |
const std::string & | user () const |
const std::string & | host () const |
Private Member Functions | |
void | create_key () |
Private Attributes | |
std::string | m_user |
User part. More... | |
std::string | m_host |
Host part. More... | |
std::string | m_key |
Key: Internal representation mainly to facilitate use of Auth_id class in standard container. More... | |
Storage container for default auth ids.
Default roles are only weakly depending on ACL_USERs. You can retain a default role even if the corresponding ACL_USER is missing in the acl_cache.
|
default |
Auth_id::Auth_id | ( | const char * | user, |
size_t | user_len, | ||
const char * | host, | ||
size_t | host_len | ||
) |
Auth_id::Auth_id | ( | const Auth_id_ref & | id | ) |
Auth_id::Auth_id | ( | const LEX_CSTRING & | user, |
const LEX_CSTRING & | host | ||
) |
Auth_id::Auth_id | ( | const std::string & | user, |
const std::string & | host | ||
) |
Auth_id::Auth_id | ( | const LEX_USER * | lex_user | ) |
Auth_id::Auth_id | ( | const ACL_USER * | acl_user | ) |
|
default |
Auth_id::Auth_id | ( | const Auth_id & | id | ) |
std::string Auth_id::auth_str | ( | ) | const |
void Auth_id::auth_str | ( | std::string * | out | ) | const |
Output Auth_id in user<at>host format.
[in] | out | Buffer to store user<at>host |
|
private |
const std::string & Auth_id::host | ( | ) | const |
bool Auth_id::operator< | ( | const Auth_id & | id | ) | const |
const std::string & Auth_id::user | ( | ) | const |
|
private |
Host part.
|
private |
Key: Internal representation mainly to facilitate use of Auth_id class in standard container.
Format: 'user\0host\0'
|
private |
User part.