confluent-kafka-dotnet
Show / Hide Table of Contents

Class BasicAuthenticationHeaderValueProvider

A HTTP authentication header value provider implementing the 'Basic' scheme.

See: https://datatracker.ietf.org/doc/html/rfc7617

Inheritance
object
BasicAuthenticationHeaderValueProvider
Implements
IAuthenticationHeaderValueProvider
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 BasicAuthenticationHeaderValueProvider : IAuthenticationHeaderValueProvider

Constructors

BasicAuthenticationHeaderValueProvider(string, string)

Initialize a new instance of the BasicAuthenticationHeaderValueProvider class.

Declaration
public BasicAuthenticationHeaderValueProvider(string username, string password)
Parameters
Type Name Description
string username

The username

string password

The password

Methods

GetAuthenticationHeader()

Get the authentication header for HTTP requests

Declaration
public AuthenticationHeaderValue GetAuthenticationHeader()
Returns
Type Description
AuthenticationHeaderValue

The authentication header for HTTP request messages

Implements

IAuthenticationHeaderValueProvider
In this article