<wsHttpBinding> 的 <security>

代表 <<wsHttpBinding>>的安全性功能。

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

<security mode="Message/None/Transport/TransportWithMessageCredential">
   <transport
         clientCredentialType="Basic/Certificate/Digest/None/Ntlm/Windows"
      proxyCredentialType="Basic/Digest/None/Ntlm/Windows"
      realm="string" 
      defaultClientCredentialType="Basic/Certificate/Digest/None/Ntlm/Windows"
      defaultProxyCredentialType="Basic/Digest/None/Ntlm/Windows"
      defaultRealm="string" />
   <message
            clientCredentialType="Certificate/IssuedToken/None/UserName/Windows"
      algorithmSuite="Basic128/Basic192/Basic256/Basic128Rsa15/Basic256Rsa15/TripleDes/TripleDesRsa15/Basic128Sha256/Basic192Sha256/TripleDesSha256/Basic128Sha256Rsa15/Basic192Sha256Rsa15/Basic256Sha256Rsa15/TripleDesSha256Rsa15"
       establishSecurityContext="Boolean" 
      negotiateServiceCredential="Boolean"/>
</security>

屬性和項目

屬性

屬性 描述

mode

  • 選擇項,指定套用的安全性類型。預設為 Message
  • 此屬性的型別為 SecurityMode

子項目

項目 描述

<wsHttpBinding> 的 <transport>

定義傳輸安全性設定。這個項目對應至 HttpTransportSecurityElement 型別。

<wsHttpBinding> 的 <message>

定義訊息的安全性設定。這個項目對應至 MessageSecurityOverHttpElement 型別。

父項目

項目 描述

<<wsHttpBinding>>

HTTP 傳輸應用程式的安全繫結。

備註

WSHttpBinding 類別主要是用來與實作 WS-* 規格的服務進行交互操作。此繫結的傳輸安全性為使用 HTTP 或 HTTPS 的安全通訊端層 (SSL)。

請參閱

參考

WSHttpSecurity
Security
Security
WSHttpSecurityElement

概念

<binding>

其他資源

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