MySQL 8.0.39
Source Code Documentation
Kerberos_plugin_client Class Reference

#include <auth_kerberos_client_plugin.h>

Public Member Functions

 Kerberos_plugin_client (MYSQL_PLUGIN_VIO *vio, MYSQL *mysql, authentication_mode mode)
 
 ~Kerberos_plugin_client ()=default
 
bool authenticate ()
 
void set_upn_info (std::string name, std::string pwd)
 
void set_mysql_account_name (std::string name)
 
bool obtain_store_credentials ()
 
bool read_spn_realm_from_server ()
 

Protected Member Functions

void create_upn (std::string account_name)
 

Protected Attributes

std::string m_user_principal_name
 
std::string m_password
 
std::string m_service_principal
 
std::string m_as_user_relam
 
MYSQL_PLUGIN_VIOm_vio {nullptr}
 
MYSQLm_mysql {nullptr}
 
authentication_mode m_mode
 
std::unique_ptr< I_Kerberos_clientm_kerberos_client
 

Constructor & Destructor Documentation

◆ Kerberos_plugin_client()

Kerberos_plugin_client::Kerberos_plugin_client ( MYSQL_PLUGIN_VIO vio,
MYSQL mysql,
authentication_mode  mode 
)

◆ ~Kerberos_plugin_client()

Kerberos_plugin_client::~Kerberos_plugin_client ( )
default

Member Function Documentation

◆ authenticate()

bool Kerberos_plugin_client::authenticate ( )

◆ create_upn()

void Kerberos_plugin_client::create_upn ( std::string  account_name)
protected

◆ obtain_store_credentials()

bool Kerberos_plugin_client::obtain_store_credentials ( )

◆ read_spn_realm_from_server()

bool Kerberos_plugin_client::read_spn_realm_from_server ( )

◆ set_mysql_account_name()

void Kerberos_plugin_client::set_mysql_account_name ( std::string  name)

◆ set_upn_info()

void Kerberos_plugin_client::set_upn_info ( std::string  name,
std::string  pwd 
)

Member Data Documentation

◆ m_as_user_relam

std::string Kerberos_plugin_client::m_as_user_relam
protected

◆ m_kerberos_client

std::unique_ptr<I_Kerberos_client> Kerberos_plugin_client::m_kerberos_client
protected

◆ m_mode

authentication_mode Kerberos_plugin_client::m_mode
protected

◆ m_mysql

MYSQL* Kerberos_plugin_client::m_mysql {nullptr}
protected

◆ m_password

std::string Kerberos_plugin_client::m_password
protected

◆ m_service_principal

std::string Kerberos_plugin_client::m_service_principal
protected

◆ m_user_principal_name

std::string Kerberos_plugin_client::m_user_principal_name
protected

◆ m_vio

MYSQL_PLUGIN_VIO* Kerberos_plugin_client::m_vio {nullptr}
protected

The documentation for this class was generated from the following files: