pulsar-client-cpp
Loading...
Searching...
No Matches
authentication.h
1
20#pragma once
21
22#include <pulsar/defines.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28typedef struct _pulsar_authentication pulsar_authentication_t;
29
30typedef char *(*token_supplier)(void *);
31
32PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_create(const char *dynamicLibPath,
33 const char *authParamsString);
34
35PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_tls_create(const char *certificatePath,
36 const char *privateKeyPath);
37
38PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_token_create(const char *token);
39PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_token_create_with_supplier(
40 token_supplier tokenSupplier, void *ctx);
41
42PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_basic_create(const char *username,
43 const char *password);
44
45PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_athenz_create(const char *authParamsString);
46
47PULSAR_PUBLIC pulsar_authentication_t *pulsar_authentication_oauth2_create(const char *authParamsString);
48
49PULSAR_PUBLIC void pulsar_authentication_free(pulsar_authentication_t *authentication);
50
51#ifdef __cplusplus
52}
53#endif