MySQL 9.3.0
Source Code Documentation
connection_control::Security_context_wrapper Class Reference

#include <security_context_wrapper.h>

Public Member Functions

 Security_context_wrapper (MYSQL_THD thd)
 Security_context_wrapper constructor. More...
 
 ~Security_context_wrapper ()=default
 
const char * get_proxy_user ()
 Get proxy user information from security context. More...
 
const char * get_priv_user ()
 Get priv user information from security context. More...
 
const char * get_priv_host ()
 Get priv host information from security context. More...
 
const char * get_user ()
 Get connected user information from security context. More...
 
const char * get_host ()
 Get connected host information from security context. More...
 
const char * get_ip ()
 Get connected ip information from security context. More...
 

Private Member Functions

const char * get_property (const char *property)
 Get value for given property from security context. More...
 

Private Attributes

Security_context_handle m_sctx
 
bool m_valid = false
 

Constructor & Destructor Documentation

◆ Security_context_wrapper()

connection_control::Security_context_wrapper::Security_context_wrapper ( MYSQL_THD  thd)
explicit

Security_context_wrapper constructor.

Parameters
[in]thdHandle to THD

Get security context from thd.

◆ ~Security_context_wrapper()

connection_control::Security_context_wrapper::~Security_context_wrapper ( )
default

Member Function Documentation

◆ get_host()

const char * connection_control::Security_context_wrapper::get_host ( )

Get connected host information from security context.

◆ get_ip()

const char * connection_control::Security_context_wrapper::get_ip ( )

Get connected ip information from security context.

◆ get_priv_host()

const char * connection_control::Security_context_wrapper::get_priv_host ( )

Get priv host information from security context.

◆ get_priv_user()

const char * connection_control::Security_context_wrapper::get_priv_user ( )

Get priv user information from security context.

◆ get_property()

const char * connection_control::Security_context_wrapper::get_property ( const char *  property)
private

Get value for given property from security context.

Parameters
[in]propertyProperty to be checked
Returns
value of the property

◆ get_proxy_user()

const char * connection_control::Security_context_wrapper::get_proxy_user ( )

Get proxy user information from security context.

◆ get_user()

const char * connection_control::Security_context_wrapper::get_user ( )

Get connected user information from security context.

Member Data Documentation

◆ m_sctx

Security_context_handle connection_control::Security_context_wrapper::m_sctx
private

◆ m_valid

bool connection_control::Security_context_wrapper::m_valid = false
private

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