MySQL 9.1.0
Source Code Documentation
Rpl_channel_credentials Class Reference

#include <rpl_channel_credentials.h>

Classes

struct  Channel_cred_param
 

Public Member Functions

void reset ()
 Delete all stored credentials and delete instance. More...
 
int number_of_channels ()
 Number of channels stored. More...
 
int get_credentials (const char *channel_name, String_set &user, String_set &pass, String_set &auth)
 Method to get channel credentials. More...
 
int store_credentials (const char *channel_name, char *username, char *password, char *plugin_auth)
 Method to store credentials in map. More...
 
int delete_credentials (const char *channel_name)
 Method to delete channel credentials. More...
 

Static Public Member Functions

static Rpl_channel_credentialsget_instance ()
 Returns object. More...
 

Private Types

typedef std::pair< std::string, Channel_cred_paramchannel_credential_pair
 

Private Member Functions

 Rpl_channel_credentials ()=default
 Constructor. More...
 
virtual ~Rpl_channel_credentials ()=default
 Destructor. More...
 

Private Attributes

std::map< std::string, Channel_cred_paramm_credential_set
 

Member Typedef Documentation

◆ channel_credential_pair

Constructor & Destructor Documentation

◆ Rpl_channel_credentials()

Rpl_channel_credentials::Rpl_channel_credentials ( )
privatedefault

Constructor.

◆ ~Rpl_channel_credentials()

virtual Rpl_channel_credentials::~Rpl_channel_credentials ( )
privatevirtualdefault

Destructor.

Member Function Documentation

◆ delete_credentials()

int Rpl_channel_credentials::delete_credentials ( const char *  channel_name)

Method to delete channel credentials.

Parameters
[in]channel_nameThe channel.
Returns
the operation status
Return values
0OK
1Credentials do not exist.

◆ get_credentials()

int Rpl_channel_credentials::get_credentials ( const char *  channel_name,
String_set user,
String_set pass,
String_set auth 
)

Method to get channel credentials.

Parameters
[in]channel_nameThe channel.
[out]userUsername of channel.
[out]passPassword of channel.
[out]authAuthentication plugin.
Returns
the operation status
Return values
0OK
1Credentials do not exist.

◆ get_instance()

Rpl_channel_credentials & Rpl_channel_credentials::get_instance ( )
static

Returns object.

Returns
instance

◆ number_of_channels()

int Rpl_channel_credentials::number_of_channels ( )

Number of channels stored.

Returns
number of channels

◆ reset()

void Rpl_channel_credentials::reset ( void  )

Delete all stored credentials and delete instance.

◆ store_credentials()

int Rpl_channel_credentials::store_credentials ( const char *  channel_name,
char *  username,
char *  password,
char *  plugin_auth 
)

Method to store credentials in map.

Parameters
[in]channel_nameThe channel name to store.
[in]usernameUsername for channel.
[in]passwordPassword for channel.
[in]plugin_authAuthentication plugin.
Returns
the operation status
Return values
0OK
1Error, credentials already exists

Member Data Documentation

◆ m_credential_set

std::map<std::string, Channel_cred_param> Rpl_channel_credentials::m_credential_set
private

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