pulsar-client-cpp
Public Member Functions | Static Public Member Functions | List of all members
pulsar::AuthToken Class Reference

#include <Authentication.h>

Inheritance diagram for pulsar::AuthToken:
pulsar::Authentication

Public Member Functions

 AuthToken (AuthenticationDataPtr &)
 
const std::string getAuthMethodName () const
 
Result getAuthData (AuthenticationDataPtr &authDataToken) const
 

Static Public Member Functions

static AuthenticationPtr create (ParamMap &params)
 
static AuthenticationPtr create (const std::string &authParamsString)
 
static AuthenticationPtr createWithToken (const std::string &token)
 
static AuthenticationPtr create (const TokenSupplier &tokenSupplier)
 
- 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_
 

Detailed Description

Token based implementation of Pulsar client authentication

Member Function Documentation

◆ create()

static AuthenticationPtr pulsar::AuthToken::create ( const TokenSupplier &  tokenSupplier)
static

Create an authentication provider for token based authentication.

Parameters
tokenSuppliera supplier of the client auth token

◆ createWithToken()

static AuthenticationPtr pulsar::AuthToken::createWithToken ( const std::string &  token)
static

Create an authentication provider for token based authentication.

Parameters
tokena string containing the auth token

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