pulsar-client-cpp
|
#include <Authentication.h>
Public Member Functions | |
AuthBasic (AuthenticationDataPtr &) | |
const std::string | getAuthMethodName () const override |
Result | getAuthData (AuthenticationDataPtr &authDataBasic) override |
virtual const std::string | getAuthMethodName () const =0 |
virtual Result | getAuthData (AuthenticationDataPtr &authDataContent) |
Static Public Member Functions | |
static AuthenticationPtr | create (ParamMap ¶ms) |
static AuthenticationPtr | create (const std::string &authParamsString) |
static AuthenticationPtr | create (const std::string &username, const std::string &password) |
static AuthenticationPtr | create (const std::string &username, const std::string &password, const std::string &method) |
Static Public Member Functions inherited from pulsar::Authentication | |
static ParamMap | parseDefaultFormatAuthParams (const std::string &authParamsString) |
Additional Inherited Members | |
Protected Attributes inherited from pulsar::Authentication | |
AuthenticationDataPtr | authData_ |
Basic based implementation of Pulsar client authentication
|
static |
Create an AuthBasic with an authentication parameter string
authParamsString | the JSON format string: {"username": "admin", "password": "123456"} |
|
static |
Create an AuthBasic with the required parameters
|
static |
Create an AuthBasic with the required parameters
|
static |
Create an AuthBasic with a ParamMap
It is equal to create(params[“username”], params[“password”])
|
overridevirtual |
Get AuthenticationData from the current instance
[out] | authDataBasic | the shared pointer of AuthenticationData. The content of AuthenticationData is changed to the internal data of the current instance. |
Reimplemented from pulsar::Authentication.
|
overridevirtual |
Implements pulsar::Authentication.