<webHttpBinding> 的 <transport>

定义配置为接收 HTTP 请求的服务终结点的传输级安全设置。

<system.serviceModel>
  <bindings>
    <wsHttpBinding>
      <binding>
        <webHttpBinding> 的 <security>
          <webHttpBinding> 的 <transport>

<transport clientCredentialType = 
       "Basic/Certificate/Digest/None/Ntlm/Windows"
       proxyCredentialType="Basic/Digest/None/Ntlm/Windows"
       realm="string" />

HttpTransportSecurity

属性和元素

属性

属性 说明

clientCredentialType

指定用于向服务证明客户端身份的凭据。此属性的类型为 HttpClientCredentialType

proxyCredentialType

指定用于向域代理证明客户端身份的凭据。此属性的类型为 HttpProxyCredentialType

realm

一个字符串,指定摘要式或基本身份验证的身份验证领域。默认值为一个空字符串。

身份验证领域至少指定执行身份验证的主机的名称。它还可以指定具有访问权限的用户的集合。用户可以查询身份验证领域,以确定多个可能的用户名和密码中哪一个可以使用。

子元素

无。

父元素

元素 说明

<webHttpBinding> 的 <security>

表示 <wsHttpBinding> 元素的安全功能。

另请参见

参考

HttpTransportSecurity
Transport
Transport
HttpTransportSecurityElement

概念

<binding>

其他资源

Securing Services and Clients
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients
Web Programming Model