Export (0) Print
Expand All
Expand Minimize

HttpClientCredentialType Enumeration

Enumerates the valid credential types for HTTP clients.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

public enum HttpClientCredentialType
public enum HttpClientCredentialType
public enum HttpClientCredentialType

 Member nameDescription
BasicSpecifies Basic authentication. For more information, see RFC 2617 – HTTP Authentication: Basic and Digest Authentication. This document is available at http://www.rfc-editor.org
CertificateSpecifies client authentication using a certificate. 
DigestSpecifies Digest authentication. For more information, see RFC 2617 – HTTP Authentication: Basic and Digest Authentication. This document is available at http://www.rfc-editor.org 
NoneSpecifies anonymous authentication. 
NtlmSpecifies client authentication using NTLM. 
WindowsSpecifies client authentication using Windows. 

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.

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;

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft