HttpChallengeHeaderValue HttpChallengeHeaderValue HttpChallengeHeaderValue HttpChallengeHeaderValue Class

Definition

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

public sealed class HttpChallengeHeaderValuepublic sealed class HttpChallengeHeaderValuePublic NotInheritable Class HttpChallengeHeaderValuepublic sealed class HttpChallengeHeaderValue
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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) HttpChallengeHeaderValue(String) HttpChallengeHeaderValue(String) HttpChallengeHeaderValue(String)

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

public HttpChallengeHeaderValue(String scheme)public New(String scheme)Public Sub New(scheme As String)public HttpChallengeHeaderValue(String scheme)
Parameters
scheme
System.String System.String System.String System.String

The scheme to use for authorization.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

HttpChallengeHeaderValue(String, String) HttpChallengeHeaderValue(String, String) HttpChallengeHeaderValue(String, String) HttpChallengeHeaderValue(String, String)

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

public HttpChallengeHeaderValue(String scheme, String token)public New(String scheme, String token)Public Sub New(scheme As String, token As String)public HttpChallengeHeaderValue(String scheme, String token)
Parameters
scheme
System.String System.String System.String System.String

The scheme to use for authorization.

token
System.String System.String System.String System.String

The SPNEGO token to use with the Negotiate protocol scheme.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Parameters Parameters Parameters Parameters

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

public IVector<HttpNameValueHeaderValue> Parameters { get; }public IVector<HttpNameValueHeaderValue> Parameters { get; }Public ReadOnly Property Parameters As IVector<HttpNameValueHeaderValue>public IVector<HttpNameValueHeaderValue> Parameters { get; }
Value

The credentials that contain the authentication information.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Scheme Scheme Scheme Scheme

Gets the scheme to use for authentication.

public string Scheme { get; }public string Scheme { get; }Public ReadOnly Property Scheme As stringpublic string Scheme { get; }
Value
string string string string

The scheme to use for authentication.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Token Token Token Token

The SPNEGO token to use with the Negotiate protocol scheme.

public string Token { get; }public string Token { get; }Public ReadOnly Property Token As stringpublic string Token { get; }
Value
string string string string

The SPNEGO token.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an HttpChallengeHeaderValue instance.

public static HttpChallengeHeaderValue Parse(String input)public static HttpChallengeHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpChallengeHeaderValuepublic static HttpChallengeHeaderValue Parse(String input)
Parameters
input
System.String System.String System.String System.String

A string that represents authentication header value information.

Returns
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpChallengeHeaderValue object.

public string ToString()public string ToString()Public Function ToString() As stringpublic string ToString()
Returns
string string string string

A string that represents the current object.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

TryParse(String, HttpChallengeHeaderValue) TryParse(String, HttpChallengeHeaderValue) TryParse(String, HttpChallengeHeaderValue) TryParse(String, HttpChallengeHeaderValue)

Determines whether a string is valid HttpChallengeHeaderValue information.

public static bool TryParse(String input, HttpChallengeHeaderValue challengeHeaderValue)public static bool TryParse(String input, HttpChallengeHeaderValue challengeHeaderValue)Public Static Function TryParse(input As String, challengeHeaderValue As HttpChallengeHeaderValue) As boolpublic static bool TryParse(String input, HttpChallengeHeaderValue challengeHeaderValue)
Parameters
input
System.String System.String System.String System.String

The string to validate.

Returns
bool bool bool bool

true if input is valid HttpChallengeHeaderValue information; otherwise, false.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)