<netPeerBinding> の <security>

<<netPeerTcpBinding>> のセキュリティ設定を定義します。使用される認証の種類とメッセージ トランスポートで使用されるセキュリティを含みます。

<system.serviceModel>
  <bindings>
    <<netPeerTcpBinding>>
      <binding>
        <netPeerBinding> の <security>

<netPeerBinding>
    <binding>
        <security mode="Message/None/Transport//TransportWithMessageCredential">
            <transport credentialType="Certificate/Password" />
        </security>
    </binding>
</netPeerBinding>

属性および要素

属性

属性 説明

mode

省略可能。このバインディングで構成されたピアが使用するセキュリティの種類を指定します。既定値は、Message です。この属性は SecurityMode 型です。

子要素

要素 説明

<netPeerTcpBinding> の <transport>

このバインディングで構成されたピアが送信するセキュリティで保護されたメッセージのトランスポートの型を定義します。この要素は PeerTransportSecurityElement 型です。

親要素

要素 説明

<binding>

<<netPeerTcpBinding>> のすべてのバインディング機能を定義します。

解説

セキュリティは、メッセージ固有にすることも、トランスポート固有にすることもできます。

関連項目

リファレンス

PeerSecurityElement
Security
Security
PeerSecuritySettings

概念

<binding>

その他の技術情報

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