<httpDigest> 元素
指定一个在向服务证明客户端身份时使用的摘要类型凭据。
架构层次结构
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<endpointBehaviors> 的 <behavior>
<clientCredentials>
<httpDigest> 元素
语法
<digest impersonationLevel="Identification/Impersonation/Delegation/Anonymous/None" />
属性和元素
以下几节描述了特性、子元素和父元素。
属性
特性 | 说明 |
---|---|
impersonationLevel |
设置客户端用于与服务器进行通信的模拟首选项。服务器上不强制使用客户端所选择的模拟模式。包括以下有效值:
默认值为 Identification。此属性的类型为 TokenImpersonationLevel。 |
子元素
无
父元素
元素 | 说明 |
---|---|
指定用于向服务验证客户端身份的凭据。 |
备注
摘要是使用算法和一组输入确定的哈希。身份验证器和被验证方一致同意某种算法并交换用作输入的数据。客户端可以计算哈希并将其发送给服务。服务也可以计算哈希并比较值。如果匹配,则客户端将通过验证。
必须使用 Windows 上的 Active Directory 和 Internet 信息服务 (IIS) 启用此功能。有关更多信息,请参见 IIS 6.0 中的摘要式身份验证。
另请参见
参考
ClientCredentialsElement
HttpDigest
ClientCredentials
HttpDigest
HttpDigestClientElement
HttpDigestClientCredential
其他资源
Security Behaviors in WCF
Securing Clients
Working with Certificates
Securing Services and Clients