<webHttpBinding> 的 <security>

指定对用 <wsHttpBinding>配置的终结点的安全要求。

架构层次结构

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

语法

<system.ServiceModel>
    <bindings>
        <webHttpBinding>
            <binding name = "string">
              <security mode="None/Transport/TransportCredentialOnly">
                                    <transport clientCredentialType = 
                                     "Basic/Certificate/Digest/None/Ntlm/Windows"
                                     proxyCredentialType="Basic/Digest/None/Ntlm/Windows"
                                     realm="string" />
              </security>
        </webHttpBinding>
    </bindings>
</system.ServiceModel>

属性和元素

以下几节描述了特性、子元素和父元素。

属性

特性 说明

mode

指定终结点是使用传输级安全模式还是不使用安全模式。默认值为 None。此属性的类型为 WebHttpSecurityMode

子元素

元素 说明

<webHttpBinding> 的 <transport>

定义传输安全设置。此元素与 HttpTransportSecurityElement 类型相对应。

父元素

元素 说明

<webHttpBinding>

一个绑定元素,可用于为响应 HTTP 请求(而不是 SOAP 消息)的 Windows Communication Foundation (WCF) Web 服务配置终结点。

另请参见

参考

WebHttpBindingElement
WSHttpSecurityElement
Security
Security
WebHttpSecurity

概念

<binding>

其他资源

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