HttpClientCredentialType HttpClientCredentialType HttpClientCredentialType HttpClientCredentialType Enum

Definition

Enumerates the valid credential types for HTTP clients.

public enum class HttpClientCredentialType
public enum HttpClientCredentialType
type HttpClientCredentialType = 
Public Enum HttpClientCredentialType
Inheritance
HttpClientCredentialTypeHttpClientCredentialTypeHttpClientCredentialTypeHttpClientCredentialType

Fields

Basic Basic Basic Basic 1

Specifies Basic authentication. For more information, see RFC 2617 – HTTP Authentication: Basic and Digest Authentication.

Certificate Certificate Certificate Certificate 5

Specifies client authentication using a certificate.

Digest Digest Digest Digest 2

Specifies Digest authentication. For more information, see RFC 2617 – HTTP Authentication: Basic and Digest Authentication.

InheritedFromHost InheritedFromHost InheritedFromHost InheritedFromHost 6

The authentication is inherited from the host.

None None None None 0

Specifies anonymous authentication.

Ntlm Ntlm Ntlm Ntlm 3

Specifies client authentication using NTLM.

Windows Windows Windows Windows 4

Specifies client authentication using Windows.

Examples

The following code shows how to set ClientCredentialType to a member of this enumeration.

// The code uses a shortcut to specify the security mode to Transport.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = New WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows

Remarks

This enumeration is used by ClientCredentialType to specify the type of client credential to be used for authentication.

Note that if SecurityMode is set to TransportWithMessageCredential, then the value of HttpClientCredentialType is ignored.

Applies to