Class BearerAuthenticationHeaderValueProvider
Inherited Members
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class BearerAuthenticationHeaderValueProvider : IAuthenticationBearerHeaderValueProvider, IAuthenticationHeaderValueProvider, IDisposableConstructors
BearerAuthenticationHeaderValueProvider(HttpClient, string, string, string, string, string, string, int, int, int)
Declaration
public BearerAuthenticationHeaderValueProvider(HttpClient httpClient, string clientId, string clientSecret, string scope, string tokenEndpoint, string logicalCluster, string identityPool, int maxRetries, int retriesWaitMs, int retriesMaxWaitMs)Parameters
| Type | Name | Description |
|---|---|---|
| HttpClient | httpClient | |
| string | clientId | |
| string | clientSecret | |
| string | scope | |
| string | tokenEndpoint | |
| string | logicalCluster | |
| string | identityPool | |
| int | maxRetries | |
| int | retriesWaitMs | |
| int | retriesMaxWaitMs |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()GetAuthenticationHeader()
Get the authentication header for HTTP requests
Declaration
public AuthenticationHeaderValue GetAuthenticationHeader()Returns
| Type | Description |
|---|---|
| AuthenticationHeaderValue | The authentication header for HTTP request messages |
GetIdentityPool()
Get the identity pool for HTTP requests
Declaration
public string GetIdentityPool()Returns
| Type | Description |
|---|---|
| string | The identity pool for HTTP request messages |
GetLogicalCluster()
Get the logical cluster for HTTP requests
Declaration
public string GetLogicalCluster()Returns
| Type | Description |
|---|---|
| string | The logical cluster for HTTP request messages |
InitOrRefreshAsync()
Declaration
public Task InitOrRefreshAsync()Returns
| Type | Description |
|---|---|
| Task |
NeedsInitOrRefresh()
Declaration
public bool NeedsInitOrRefresh()Returns
| Type | Description |
|---|---|
| bool |