Class BasicAuthenticationHeaderValueProvider
A HTTP authentication header value provider implementing the 'Basic' scheme.
Implements
Inherited Members
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 |