pulsar-client-cpp
|
#include <Authentication.h>
Public Member Functions | |
AuthTls (AuthenticationDataPtr &) | |
const std::string | getAuthMethodName () const |
Result | getAuthData (AuthenticationDataPtr &authDataTls) |
Static Public Member Functions | |
static AuthenticationPtr | create (ParamMap ¶ms) |
static AuthenticationPtr | create (const std::string &authParamsString) |
static AuthenticationPtr | create (const std::string &certificatePath, const std::string &privateKeyPath) |
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_ |
TLS implementation of Pulsar client authentication
|
static |
Create an AuthTls with an authentication parameter string
|
static |
Create an AuthTls with the required parameters
certificatePath | the file path for a client certificate |
privateKeyPath | the file path for a client private key |
|
static |
Create an AuthTls with a ParamMap
It is equal to create(params[“tlsCertFile”], params[“tlsKeyFile”])
|
virtual |
Get AuthenticationData from the current instance
[out] | authDataTls | the shared pointer of AuthenticationData. The content of AuthenticationData is changed to the internal data of the current instance. |
Reimplemented from pulsar::Authentication.
|
virtual |
Implements pulsar::Authentication.