HttpChallengeHeaderValue
HttpChallengeHeaderValue
HttpChallengeHeaderValue
HttpChallengeHeaderValue
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// You can use this class in JavaScript.
- Attributes
| 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(PlatForm::String scheme)public HttpChallengeHeaderValue(String scheme)Public Sub New(scheme As String)// You can use this method in JavaScript.
- scheme
- PlatForm::String String String String
The scheme to use for authorization.
- See Also
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(PlatForm::String scheme, PlatForm::String token)public HttpChallengeHeaderValue(String scheme, String token)Public Sub New(scheme As String, token As String)// You can use this method in JavaScript.
- scheme
- PlatForm::String String String String
The scheme to use for authorization.
- token
- PlatForm::String String String String
The SPNEGO token to use with the Negotiate protocol scheme.
- See Also
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 IList<HttpNameValueHeaderValue> Parameters { get; }Public ReadOnly Property Parameters As IList<HttpNameValueHeaderValue>// You can use this property in JavaScript.
- Value
- IVector<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue> IList<HttpNameValueHeaderValue>
The credentials that contain the authentication information.
Scheme 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The scheme to use for authentication.
Methods
Parse(String) 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// You can use this method in JavaScript.
- input
- PlatForm::String String String String
A string that represents authentication header value information.
An HttpChallengeHeaderValue instance.
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() ToString()
Returns a string that represents the current HttpChallengeHeaderValue object.
public : PlatForm::String ToString()public string ToString()Public Function ToString() As string// You can use this method in JavaScript.
A string that represents the current object.
TryParse(String, HttpChallengeHeaderValue) 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// You can use this method in JavaScript.
- input
- PlatForm::String String String String
The string to validate.
- challengeHeaderValue
- HttpChallengeHeaderValue HttpChallengeHeaderValue HttpChallengeHeaderValue HttpChallengeHeaderValue
The HttpChallengeHeaderValue version of the string.
true if input is valid HttpChallengeHeaderValue information; otherwise, false.