Share via


HttpChallengeHeaderValue Class

Definition

Represents authentication information used in the Proxy-Authenticate and WWW-Authenticate HTTP header values.

public ref class HttpChallengeHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpChallengeHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpChallengeHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpChallengeHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpChallengeHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpChallengeHeaderValue : IStringable
function HttpChallengeHeaderValue(scheme, token)
Public NotInheritable Class HttpChallengeHeaderValue
Implements IStringable
Inheritance
Object Platform::Object IInspectable HttpChallengeHeaderValue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The HttpChallengeHeaderValue class provides support for the authentication information in Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate HTTP header values as defined in RFC 2616 by the IETF.

Constructors

HttpChallengeHeaderValue(String, String)

Initializes a new instance of the HttpChallengeHeaderValue class with the scheme to use for authorization and the SPNEGO token.

HttpChallengeHeaderValue(String)

Initializes a new instance of the HttpChallengeHeaderValue class with the scheme to use for authorization.

Properties

Parameters

Gets the credentials that contain the authentication information of the user agent for the resource being requested.

Scheme

Gets the scheme to use for authentication.

Token

The SPNEGO token to use with the Negotiate protocol scheme.

Methods

Parse(String)

Converts a string to an HttpChallengeHeaderValue instance.

ToString()

Returns a string that represents the current HttpChallengeHeaderValue object.

TryParse(String, HttpChallengeHeaderValue)

Determines whether a string is valid HttpChallengeHeaderValue information.

Applies to

See also