HttpClientCredentialType Énumération

Définition

Énumère les types d'informations d'identification valides pour les clients HTTP.

public enum class HttpClientCredentialType
public enum HttpClientCredentialType
type HttpClientCredentialType = 
Public Enum HttpClientCredentialType
Héritage
HttpClientCredentialType

Champs

Basic 1

Spécifie l'authentification de base. Pour plus d’informations, consultez la RFC 2617 - Authentification HTTP : Authentification de base et Digest.

Certificate 5

Spécifie l'authentification du client à l'aide d'un certificat.

Digest 2

Spécifie l'authentification Digest. Pour plus d’informations, consultez la RFC 2617 - Authentification HTTP : Authentification de base et Digest.

InheritedFromHost 6

L'authentification est héritée de l'hôte.

None 0

Spécifie l'authentification anonyme.

Ntlm 3

Spécifie l'authentification du client à l'aide de NTLM.

Windows 4

Spécifie l'authentification du client à l'aide de Windows.

Exemples

Le code suivant indique comment affecter un membre de cette énumération à la propriété ClientCredentialType.

// 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

Remarques

Cette énumération est utilisée par ClientCredentialType pour spécifier le type d'informations d'identification du client à utiliser pour l'authentification.

Notez que si SecurityMode est affecté à TransportWithMessageCredential, alors la valeur de HttpClientCredentialType est ignorée.

S’applique à