FederatedMessageSecurityOverHttp.NegotiateServiceCredential プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
サービスの証明書を取得するためにメッセージ レベルの SSL ネゴシエーションを実行するかどうかを指定します。
public:
property bool NegotiateServiceCredential { bool get(); void set(bool value); };
public bool NegotiateServiceCredential { get; set; }
member this.NegotiateServiceCredential : bool with get, set
Public Property NegotiateServiceCredential As Boolean
プロパティ値
true サービス証明書がネゴシエートされる場合。サービス証明書を帯域外で使用できるかどうかを false します。 既定値は true です。
例
次のコードは、バインディングからこのプロパティにアクセスして設定する方法を示しています。
// This method creates a WSFederationHttpBinding.
public static WSFederationHttpBinding
CreateWSFederationHttpBinding(bool isClient)
{
// Create an instance of the WSFederationHttpBinding.
WSFederationHttpBinding b = new WSFederationHttpBinding();
// Set the security mode to Message.
b.Security.Mode = WSFederationHttpSecurityMode.Message;
// Set the Algorithm Suite to Basic256Rsa15.
b.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Rsa15;
// Set NegotiateServiceCredential to true.
b.Security.Message.NegotiateServiceCredential = true;
' This method creates a WSFederationHttpBinding.
Public Shared Function CreateWSFederationHttpBinding(ByVal isClient As Boolean) As WSFederationHttpBinding
' Create an instance of the WSFederationHttpBinding.
Dim b As New WSFederationHttpBinding()
' Set the security mode to Message.
b.Security.Mode = WSFederationHttpSecurityMode.Message
' Set the Algorithm Suite to Basic256Rsa15.
b.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256Rsa15
' Set NegotiateServiceCredential to true.
b.Security.Message.NegotiateServiceCredential = True
注釈
このプロパティは、サービス証明書がクライアントとサービスの間で自動的にネゴシエートされるかどうかを示します。 このプロパティが trueされている場合は、このようなネゴシエーションが発生します。 このプロパティが false場合は、サービスとの通信を行う前に、サービス証明書をクライアントで指定する必要があります。
サービスは常に証明書を指定する必要があります。
このプロパティが true の場合、サービス証明書のメッセージ レベル SSL ネゴシエーションは、IssuerAddress プロパティと IssuerBinding プロパティ (または LocalIssuerAddress プロパティと LocalIssuerBinding プロパティ) を介して指定されたセキュリティ トークン サービスがセキュリティ トークンを発行するように要求される前に発生します。