confluent-kafka-dotnet
Show / Hide Table of Contents

Class StaticBearerAuthenticationHeaderValueProvider

Provides authentication header values using a static bearer token.

Inheritance
object
StaticBearerAuthenticationHeaderValueProvider
Implements
IAuthenticationBearerHeaderValueProvider
IAuthenticationHeaderValueProvider
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class StaticBearerAuthenticationHeaderValueProvider : IAuthenticationBearerHeaderValueProvider, IAuthenticationHeaderValueProvider, IDisposable

Constructors

StaticBearerAuthenticationHeaderValueProvider(string, string, string)

Initializes a new instance of the StaticBearerAuthenticationHeaderValueProvider class.

Declaration
public StaticBearerAuthenticationHeaderValueProvider(string token, string logicalCluster, string identityPool)
Parameters
TypeNameDescription
stringtoken

The bearer token to use for authentication.

stringlogicalCluster

The logical cluster identifier.

stringidentityPool

The identity pool identifier.

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
TypeDescription
AuthenticationHeaderValue

The authentication header for HTTP request messages

GetIdentityPool()

Get the identity pool for HTTP requests

Declaration
public string GetIdentityPool()
Returns
TypeDescription
string

The identity pool for HTTP request messages

GetLogicalCluster()

Get the logical cluster for HTTP requests

Declaration
public string GetLogicalCluster()
Returns
TypeDescription
string

The logical cluster for HTTP request messages

InitOrRefreshAsync()

Initializes or refreshes the authentication credentials.

Declaration
public Task InitOrRefreshAsync()
Returns
TypeDescription
Task

A task representing the asynchronous initialization or refresh operation.

NeedsInitOrRefresh()

Declaration
public bool NeedsInitOrRefresh()
Returns
TypeDescription
bool

Implements

IAuthenticationBearerHeaderValueProvider
IAuthenticationHeaderValueProvider
IDisposable
In this article