Home > .NET > System > System.Net > System.Net.Http > System.Net.Http.Headers

AuthenticationHeaderValue Class

Represents an HTTP authentication scheme and its parameters.

Overview

The AuthenticationHeaderValue class provides a way to represent and manipulate HTTP authentication headers. HTTP authentication headers are used to provide credentials or other information required to authenticate a client request to a server. This class parses and formats standard HTTP authentication header strings, such as "Basic", "Digest", "Bearer", etc., along with their associated parameters.

Key aspects include:

This class is immutable, meaning once an instance is created, its properties cannot be changed.