Class BasicAuthenticationHeaderValueProvider
A HTTP authentication header value provider implementing the 'Basic' scheme.
Inheritance
System.Object
BasicAuthenticationHeaderValueProvider
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Confluent.SchemaRegistry
Assembly: cs.temp.dll.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 |
---|---|---|
System.String | username | The username |
System.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 |