HttpClientCredentialType Énumération
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
É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
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.