MySQL 8.0.40
Source Code Documentation
HttpAuthMethodBasic Class Reference

Basic Authentication for HTTP. More...

#include <http_auth_method_basic.h>

Inheritance diagram for HttpAuthMethodBasic:
[legend]

Classes

struct  AuthData
 

Static Public Member Functions

static AuthData decode_authorization (const std::string &http_auth_data, std::error_code &ec)
 
static std::string encode_authorization (const AuthData &auth_data)
 

Static Public Attributes

static constexpr char kMethodName [] = "Basic"
 

Detailed Description

Basic Authentication for HTTP.

Credentials (username:password) are wrapped in Base64. Not encrypted, must be over secure channel.

See also
RFC 7235

Member Function Documentation

◆ decode_authorization()

HttpAuthMethodBasic::AuthData HttpAuthMethodBasic::decode_authorization ( const std::string &  http_auth_data,
std::error_code &  ec 
)
static

◆ encode_authorization()

std::string HttpAuthMethodBasic::encode_authorization ( const AuthData auth_data)
static

Member Data Documentation

◆ kMethodName

constexpr char HttpAuthMethodBasic::kMethodName[] = "Basic"
staticconstexpr

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