Delen via


HttpCredentialsHeaderValue.Scheme Property

Definition

Gets the scheme to use for authentication.

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

Property Value

String

Platform::String

winrt::hstring

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.

Applies to