HttpCredentialsHeaderValue.Scheme HttpCredentialsHeaderValue.Scheme HttpCredentialsHeaderValue.Scheme HttpCredentialsHeaderValue.Scheme HttpCredentialsHeaderValue.Scheme Property

Definition

Gets the scheme to use for authentication.

public : Platform::String Scheme { get; }
winrt::hstring Scheme();
public string Scheme { get; }
Public ReadOnly Property Scheme As string
var string = httpCredentialsHeaderValue.scheme;

Property Value

string string string

The scheme to use for authentication.

Remarks

The Scheme property scheme to use for authentication of the user agent for the resource being requested.

An HttpCredentialsHeaderValue object has a Scheme and either a Token or a Parameters list. So either the Parameters property is an empty collection or the Token property is an empty string.

Each authentication scheme defines the syntax to use for authentication. Basic authentication, for example, uses base64 encoding of the userid and passwd elements in the Token property. Digest authentication would use a Parameters list of name/value pairs. Basic authentication and digest authentication are defined in IETF RFC 2617. Other schemes for authentication can be supported by the HttpCredentialsHeaderValue class.