SecurityBindingElement.CreateSspiNegotiationOverTransportBindingElement 方法

定義

建立安全性繫結項目,這個項目則設定為使用交涉式驗證封裝,根據 SOAP SSPI 交涉來進行用戶端驗證。 這個繫結項目需要傳輸提供伺服器驗證和訊息保護 (例如 HTTPS)。

多載

CreateSspiNegotiationOverTransportBindingElement()

建立安全性繫結項目,這個項目則設定為使用交涉式驗證封裝,根據 SOAP SSPI 交涉來進行用戶端驗證。 這個繫結項目需要傳輸提供伺服器驗證和訊息保護 (例如 HTTPS)。

CreateSspiNegotiationOverTransportBindingElement(Boolean)

建立安全性繫結項目,這個項目則設定為使用交涉式驗證封裝,根據 SOAP SSPI 交涉來進行用戶端驗證。 這個繫結項目需要傳輸提供伺服器驗證和訊息保護 (例如 HTTPS)。

CreateSspiNegotiationOverTransportBindingElement()

建立安全性繫結項目,這個項目則設定為使用交涉式驗證封裝,根據 SOAP SSPI 交涉來進行用戶端驗證。 這個繫結項目需要傳輸提供伺服器驗證和訊息保護 (例如 HTTPS)。

public:
 static System::ServiceModel::Channels::TransportSecurityBindingElement ^ CreateSspiNegotiationOverTransportBindingElement();
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateSspiNegotiationOverTransportBindingElement ();
static member CreateSspiNegotiationOverTransportBindingElement : unit -> System.ServiceModel.Channels.TransportSecurityBindingElement
Public Shared Function CreateSspiNegotiationOverTransportBindingElement () As TransportSecurityBindingElement

傳回

TransportSecurityBindingElement 物件。

備註

在 SSPI 交涉結束時會發行以 Cookie 為基礎的安全性內容權杖。

所建立之繫結的 IncludeTimestamp 設定為 true。 從 LocalClientSecuritySettings 傳回之 LocalClientSettings 物件的 DetectReplays 屬性設定為 false

LocalServiceSecuritySettings 傳回之 LocalServiceSettings 物件的 DetectReplays 屬性設定為 false

適用於

CreateSspiNegotiationOverTransportBindingElement(Boolean)

建立安全性繫結項目,這個項目則設定為使用交涉式驗證封裝,根據 SOAP SSPI 交涉來進行用戶端驗證。 這個繫結項目需要傳輸提供伺服器驗證和訊息保護 (例如 HTTPS)。

public:
 static System::ServiceModel::Channels::TransportSecurityBindingElement ^ CreateSspiNegotiationOverTransportBindingElement(bool requireCancellation);
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateSspiNegotiationOverTransportBindingElement (bool requireCancellation);
static member CreateSspiNegotiationOverTransportBindingElement : bool -> System.ServiceModel.Channels.TransportSecurityBindingElement
Public Shared Function CreateSspiNegotiationOverTransportBindingElement (requireCancellation As Boolean) As TransportSecurityBindingElement

參數

requireCancellation
Boolean

指定是否需要取消。 將它設定為 false 便會啟用安全性內容權杖 (在 Web 伺服陣列案例中非常有用),因為在這個模式中,工作階段狀態會在建立的安全性內容權杖內部經過編碼,而不是保存在伺服器記憶體內。

傳回

TransportSecurityBindingElement 物件。

備註

如果 requireCancellationfalse,便會發行 Cookie 架構安全性內容權杖;否則會發行工作階段架構安全性內容權杖。

所建立之繫結的 IncludeTimestamp 設定為 true。 從 LocalClientSecuritySettings 傳回之 LocalClientSettings 物件的 DetectReplays 屬性設定為 false

LocalServiceSecuritySettings 傳回之 LocalServiceSettings 物件的 DetectReplays 屬性設定為 false

適用於