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(String scheme)public HttpChallengeHeaderValue(String scheme)Public Sub New(scheme As String)
Parameters
scheme
System.String System.String System.String

The scheme to use for authorization.

Attributes

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

The scheme to use for authorization.

token
System.String System.String System.String

The SPNEGO token to use with the Negotiate protocol scheme.

Attributes

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

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
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
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(String input)public static HttpChallengeHeaderValue Parse(String input)Public Static Function Parse(input As String) As HttpChallengeHeaderValue
Parameters
input
System.String System.String System.String

A string that represents authentication header value information.

Returns
Attributes

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
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(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
System.String System.String System.String

The string to validate.

Returns
bool bool bool

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

Attributes