HttpClientCredentialType Enumeration
TOC
Collapse the table of content
Expand the table of content

HttpClientCredentialType Enumeration

 

Enumerates the valid credential types for HTTP clients.

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

public enum HttpClientCredentialType

Member nameDescription
Basic

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

Certificate

Specifies client authentication using a certificate.

Digest

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

InheritedFromHost

The authentication is inherited from the host.

None

Specifies anonymous authentication.

Ntlm

Specifies client authentication using NTLM.

Windows

Specifies 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;

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show:
© 2016 Microsoft