Partager via


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

Nom Valeur Description
None 0

Spécifie l’authentification anonyme.

Basic 1

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

Digest 2

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

Ntlm 3

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

Windows 4

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

Certificate 5

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

InheritedFromHost 6

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

Exemples

Le code suivant montre comment définir ClientCredentialType sur un membre de cette énumération.

// 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 pour ClientCredentialType spécifier le type d’informations d’identification du client à utiliser pour l’authentification.

Notez que s’il SecurityMode est défini TransportWithMessageCredentialsur , la valeur de celle-ci HttpClientCredentialType est ignorée.

S’applique à