Http​Challenge​Header​Value Http​Challenge​Header​Value Http​Challenge​Header​Value Class

Definition

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

public : sealed class HttpChallengeHeaderValue : IStringable, IHttpChallengeHeaderValuepublic sealed class HttpChallengeHeaderValue : IStringable, IHttpChallengeHeaderValuePublic NotInheritable Class HttpChallengeHeaderValue Implements IStringable, IHttpChallengeHeaderValue
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)

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

public : HttpChallengeHeaderValue(PlatForm::String scheme)public HttpChallengeHeaderValue(String scheme)Public Sub New(scheme As String)
Parameters
scheme
PlatForm::String String String

The scheme to use for authorization.

Attributes
See Also

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(PlatForm::String scheme, PlatForm::String token)public HttpChallengeHeaderValue(String scheme, String token)Public Sub New(scheme As String, token As String)
Parameters
scheme
PlatForm::String String String

The scheme to use for authorization.

token
PlatForm::String String String

The SPNEGO token to use with the Negotiate protocol scheme.

Attributes
See Also

Properties

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 IList<HttpNameValueHeaderValue> Parameters { get; }Public ReadOnly Property Parameters As IList<HttpNameValueHeaderValue>
Value
IVector<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue>

The credentials that contain the authentication information.

Attributes

Scheme Scheme Scheme

Gets the scheme to use for authentication.

public : PlatForm::String Scheme { get; }public string Scheme { get; }Public ReadOnly Property Scheme As string
Value
PlatForm::String string string

The scheme to use for authentication.

Attributes

Token Token Token

The SPNEGO token to use with the Negotiate protocol scheme.

public : PlatForm::String Token { get; }public string Token { get; }Public ReadOnly Property Token As string
Value
PlatForm::String string string

The SPNEGO token.

Attributes

Methods

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

Converts a string to an HttpChallengeHeaderValue instance.

public : static HttpChallengeHeaderValue Parse(PlatForm::String input)public static HttpChallengeHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpChallengeHeaderValue
Parameters
input
PlatForm::String String String

A string that represents authentication header value information.

Returns
Attributes

Remarks

Below are exceptions that this function throws.

E_INVALIDARG

The input parameter is null (Nothing in Visual Basic).

The input parameter is not valid authentication header information.

ToString() ToString() ToString()

Returns a string that represents the current HttpChallengeHeaderValue object.

public : PlatForm::String ToString()public string ToString()Public Function ToString() As string
Returns
PlatForm::String string string

A string that represents the current object.

Attributes

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

Determines whether a string is valid HttpChallengeHeaderValue information.

public : static PlatForm::Boolean TryParse(PlatForm::String input, HttpChallengeHeaderValue challengeHeaderValue)public static bool TryParse(String input, HttpChallengeHeaderValue challengeHeaderValue)Public Static Function TryParse(input As String, challengeHeaderValue As HttpChallengeHeaderValue) As bool
Parameters
input
PlatForm::String String String

The string to validate.

Returns
PlatForm::Boolean bool bool

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

Attributes