MySQL 8.0.39
Source Code Documentation
classic_protocol::borrowable::AuthMethod< Borrowed > Class Template Reference

AuthMethod of classic protocol. More...

#include <classic_protocol_message.h>

Public Types

using string_type = std::conditional_t< Borrowed, std::string_view, std::string >
 

Public Member Functions

 AuthMethod (classic_protocol::capabilities::value_type capabilities, string_type auth_method_name)
 
constexpr string_type name () const
 

Private Attributes

const classic_protocol::capabilities::value_type capabilities_
 
const string_type auth_method_name_
 

Detailed Description

template<bool Borrowed>
class classic_protocol::borrowable::AuthMethod< Borrowed >

AuthMethod of classic protocol.

classic proto supports negotiating the auth-method via capabilities and auth-method names.

Member Typedef Documentation

◆ string_type

template<bool Borrowed>
using classic_protocol::borrowable::AuthMethod< Borrowed >::string_type = std::conditional_t<Borrowed, std::string_view, std::string>

Constructor & Destructor Documentation

◆ AuthMethod()

template<bool Borrowed>
classic_protocol::borrowable::AuthMethod< Borrowed >::AuthMethod ( classic_protocol::capabilities::value_type  capabilities,
string_type  auth_method_name 
)
inline

Member Function Documentation

◆ name()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::AuthMethod< Borrowed >::name ( ) const
inlineconstexpr

Member Data Documentation

◆ auth_method_name_

template<bool Borrowed>
const string_type classic_protocol::borrowable::AuthMethod< Borrowed >::auth_method_name_
private

◆ capabilities_

template<bool Borrowed>
const classic_protocol::capabilities::value_type classic_protocol::borrowable::AuthMethod< Borrowed >::capabilities_
private

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