<webHttpBinding> の <transport>

HTTP 要求を受信するように構成されたサービス エンドポイントのトランスポート レベルのセキュリティ設定を定義します。

スキーマの階層

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

構文

<webHttpBinding>
    <binding>
        <security
        mode="None|Transport|Message|TransportWithMessageCredential|TransportCredentialOnly">
            <transport clientCredentialType="None|Basic|Digest|Ntlm|Windows"
             proxyCredentialType="None|Basic|Digest|Ntlm|Windows" realm="string" >
                <extendedProtectionPolicy
                     policyEnforcement="Never|WhenSupported|Always"
                     protectionScenario="TransportSelected|TrustedProxy">
                    <customServiceNames></customServiceNames>
                        </extendedProtectionPolicy>
            </transport>
        </security>
    </binding>
</WebHttpBinding>

HttpTransportSecurity

属性と要素

以降のセクションでは、属性、子要素、および親要素について説明します。

属性

属性 説明

clientCredentialType

サービスに対するクライアントの認証に使用される資格情報を指定します。この属性は HttpClientCredentialType 型です。

proxyCredentialType

ドメイン プロキシに対するクライアントの認証に使用される資格情報を指定します。この属性は HttpProxyCredentialType 型です。

realm

ダイジェストまたは基本認証の認証レルムを指定する文字列。既定値は空の文字列です。

認証レルムでは、少なくとも、認証を実行するホストの名前を指定します。アクセス権のあるユーザーのコレクションも指定できます。ユーザーは、認証レルムを照会して、複数のユーザー名およびパスワードの候補のうち、どれを使用できるかを確認することができます。

policyEnforcement

この列挙体は、ExtendedProtectionPolicy を適用するタイミングを指定します。

  1. Never – ポリシーが適用されることはありません (拡張保護は無効になります)。

  2. WhenSupported – ポリシーが適用されるのは、クライアントが拡張保護をサポートしている場合のみです。

  3. Always – ポリシーは常に適用されます。拡張保護をサポートしていないクライアントは認証に失敗します。

子要素

なし。

親要素

要素 説明

<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