語言

WSTrustServiceContract 類別

定義

WS-Trust 服務合約實施的定義。

public ref class WSTrustServiceContract : System::ServiceModel::Description::IContractBehavior, System::ServiceModel::Description::IWsdlExportExtension, System::ServiceModel::Security::IWSTrust13AsyncContract, System::ServiceModel::Security::IWSTrust13SyncContract, System::ServiceModel::Security::IWSTrustFeb2005AsyncContract, System::ServiceModel::Security::IWSTrustFeb2005SyncContract
[System.ServiceModel.Activation.AspNetCompatibilityRequirements(RequirementsMode=System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode.Allowed)]
[System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single, Name="SecurityTokenService", Namespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice")]
public class WSTrustServiceContract : System.ServiceModel.Description.IContractBehavior, System.ServiceModel.Description.IWsdlExportExtension, System.ServiceModel.Security.IWSTrust13AsyncContract, System.ServiceModel.Security.IWSTrust13SyncContract, System.ServiceModel.Security.IWSTrustFeb2005AsyncContract, System.ServiceModel.Security.IWSTrustFeb2005SyncContract
[<System.ServiceModel.Activation.AspNetCompatibilityRequirements(RequirementsMode=System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode.Allowed)>]
[<System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single, Name="SecurityTokenService", Namespace="http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice")>]
type WSTrustServiceContract = class
    interface IWSTrustFeb2005SyncContract
    interface IWSTrust13SyncContract
    interface IWSTrustFeb2005AsyncContract
    interface IWSTrust13AsyncContract
    interface IWsdlExportExtension
    interface IContractBehavior
Public Class WSTrustServiceContract
Implements IContractBehavior, IWsdlExportExtension, IWSTrust13AsyncContract, IWSTrust13SyncContract, IWSTrustFeb2005AsyncContract, IWSTrustFeb2005SyncContract
繼承
WSTrustServiceContract
屬性
實作

備註

實作以下服務合約介面:

建構函式

名稱 Description
WSTrustServiceContract(SecurityTokenServiceConfiguration)

初始化 WSTrustServiceContract 類別的新執行個體。

屬性

名稱 Description
SecurityTokenServiceConfiguration

取得服務配置。

方法

名稱 Description
AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection)

配置任何約束元素以支援合約行為。

ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime)

延期所指的合約說明。

ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime)

在合約中對客戶進行修改或延長。

BeginDispatchRequest(DispatchContext, AsyncCallback, Object)

開始對 進行非同步呼叫 DispatchRequest(DispatchContext)。

BeginProcessCore(Message, WSTrustRequestSerializer, WSTrustResponseSerializer, String, String, String, AsyncCallback, Object)

處理與 STS 的非同步通話。

BeginTrust13Cancel(Message, AsyncCallback, Object)

處理一則非同步呼叫至 WS-Trust 2月1.3日取消訊息。

BeginTrust13CancelResponse(Message, AsyncCallback, Object)

處理非同步呼叫至 WS-Trust 1.3 RSTR/Cancel 訊息。

BeginTrust13Issue(Message, AsyncCallback, Object)

處理對 WS-Trust 1.3 發行訊息的非同步呼叫。

BeginTrust13IssueResponse(Message, AsyncCallback, Object)

處理非同步呼叫至 WS-Trust 1.3 RSTR/Issue訊息。

BeginTrust13Renew(Message, AsyncCallback, Object)

處理對 WS-Trust 1.3 Renew 訊息的非同步呼叫。

BeginTrust13RenewResponse(Message, AsyncCallback, Object)

處理非同步呼叫 WS-Trust 1.3 RSTR/Renew 訊息。

BeginTrust13Validate(Message, AsyncCallback, Object)

處理非同步呼叫 WS-Trust 1.3 驗證訊息。

BeginTrust13ValidateResponse(Message, AsyncCallback, Object)

處理非同步呼叫至 WS-Trust 1.3 RSTR/Validate 訊息。

BeginTrustFeb2005Cancel(Message, AsyncCallback, Object)

處理非同步通話至 WS-Trust 2005年2月取消訊息。

BeginTrustFeb2005CancelResponse(Message, AsyncCallback, Object)

處理非同步呼叫至 2005 年 2 月 WS-Trust RSTR/Cancel 訊息。

BeginTrustFeb2005Issue(Message, AsyncCallback, Object)

處理非同步呼叫 2005 年 2 月 WS-Trust Issue 訊息。

BeginTrustFeb2005IssueResponse(Message, AsyncCallback, Object)

處理非同步呼叫至2005年2月 WS-Trust RSTR/Issue訊息。

BeginTrustFeb2005Renew(Message, AsyncCallback, Object)

處理非同步呼叫至 WS-Trust 2005年2月的續約訊息。

BeginTrustFeb2005RenewResponse(Message, AsyncCallback, Object)

處理一通非同步呼叫至2005年2月 WS-Trust RSTR/Renew 訊息。

BeginTrustFeb2005Validate(Message, AsyncCallback, Object)

處理非同步呼叫至 WS-Trust 2005年2月的驗證訊息。

BeginTrustFeb2005ValidateResponse(Message, AsyncCallback, Object)

處理 2005 年 2 月 WS-Trust RSTR/Validate 訊息的非同步呼叫。

CreateDispatchContext(Message, String, String, String, WSTrustRequestSerializer, WSTrustResponseSerializer, WSTrustSerializationContext)

建立 DispatchContext 一個物件供方法使用 DispatchRequest(DispatchContext) 。

CreateSerializationContext()

利用 WSTrustServiceClient 的本地解析器資訊建立 WSTrustSerializationContext 物件。

DispatchRequest(DispatchContext)

處理 WS-Trust 請求訊息,並可選擇性地決定適當的回應訊息及回應訊息的 WS-Addressing 動作。

EndDispatchRequest(IAsyncResult)

完成對 DispatchRequest(DispatchContext)的非同步呼叫。

EndProcessCore(IAsyncResult, String, String, String)

完成對 STS 的非同步呼叫。

EndTrust13Cancel(IAsyncResult)

完成對 WS-Trust 1.3 取消訊息的非同步呼叫。

EndTrust13CancelResponse(IAsyncResult)

完成對 WS-Trust 1.3 RSTR/Cancel 訊息的非同步呼叫。

EndTrust13Issue(IAsyncResult)

完成對 WS-Trust 1.3 發行訊息的非同步呼叫。

EndTrust13IssueResponse(IAsyncResult)

完成對 WS-Trust 1.3 RSTR/Issue 訊息的非同步呼叫。

EndTrust13Renew(IAsyncResult)

完成對 WS-Trust 1.3 Renew 訊息的非同步呼叫。

EndTrust13RenewResponse(IAsyncResult)

完成對 WS-Trust 1.3 RSTR/Renew 訊息的非同步呼叫。

EndTrust13Validate(IAsyncResult)

完成對 WS-Trust 1.3 驗證訊息的非同步呼叫。

EndTrust13ValidateResponse(IAsyncResult)

完成對 WS-Trust 1.3 RSTR/Validate訊息的非同步呼叫。

EndTrustFeb2005Cancel(IAsyncResult)

完成對 2005 年 2 月 WS-Trust 取消訊息的非同步通話。

EndTrustFeb2005CancelResponse(IAsyncResult)

完成對 2005 年 2 月 WS-Trust RSTR/Cancel 訊息的非同步通話。

EndTrustFeb2005Issue(IAsyncResult)

完成非同步通話至信託 2005 年 2 月 取消訊息。

EndTrustFeb2005IssueResponse(IAsyncResult)

完成對 2005 年 2 月 WS-Trust RSTR/Issue 訊息的非同步呼叫。

EndTrustFeb2005Renew(IAsyncResult)

完成對 WS-Trust 2005年2月續訂訊息的非同步通話。

EndTrustFeb2005RenewResponse(IAsyncResult)

完成對 2005 年 2 月 WS-Trust RSTR/Renew 訊息的非同步通話。

EndTrustFeb2005Validate(IAsyncResult)

完成對 2005 年 2 月 WS-Trust 驗證訊息的非同步呼叫。

EndTrustFeb2005ValidateResponse(IAsyncResult)

完成對 2005 年 2 月 WS-Trust RSTR/Validate 訊息的非同步呼叫。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ExportContract(WsdlExporter, WsdlContractConversionContext)

當在衍生類別中實作時,會將自訂的 Web Services Description Language(WSDL)元素寫入產生的合約 WSDL。

ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

將自訂的 Web Services Description Language(WSDL)元素寫入產生的端點 WSDL。

FixMessageElement(ServiceDescription, PortType, WsdlEndpointConversionContext, String, XmlQualifiedName, XmlQualifiedName)

在 WSDL 產生過程中,此方法會將指定的操作訊息元素固定為相應 WS-Trust 版本的 RST 與 RSTR 元素。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetRstSecurityTokenResolver()

回傳 SecurityTokenResolver 在 WS-Trust 訊息主體中解析標記與金鑰時會使用的 。

GetSecurityHeaderTokenResolver(RequestContext)

回傳 , SecurityTokenResolver 解析目前 WCF 訊息請求安全標頭中包含的安全權杖:保護權杖、背書權杖,或簽署支持權杖。

GetType()

取得目前實例的 Type。

(繼承來源 Object)
HandleException(Exception, String, String, EnvelopeVersion)

若有需要,會提出 RequestFailed 事件並將指定的例外轉換成 a FaultException 。 若原始例外為 a FaultException ,或 PreserveOriginalException 旗標設 true為 ,則不會執行轉換為 a FaultException 。

ImportSchema(WsdlExporter, WsdlEndpointConversionContext, String)

如果 WSDL 中尚未包含所有必要的結構,則匯入所有必要結構。

IncludeNamespace(WsdlEndpointConversionContext, String, String)

如果 WSDL 尚未包含,則將所需的 WS-Trust 命名空間加入。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ProcessCore(Message, WSTrustRequestSerializer, WSTrustResponseSerializer, String, String, String)

處理與 STS 的同步通話。

ProcessTrust13Cancel(Message)

同步處理 WS-Trust 1.3 取消訊息。

ProcessTrust13CancelResponse(Message)

同步處理 WS-Trust 1.3 RSTR/Cancel 訊息。

ProcessTrust13Issue(Message)

同步處理 WS-Trust 1.3 Issue 訊息。

ProcessTrust13IssueResponse(Message)

同步處理 WS-Trust 1.3 RSTR/Cancel 訊息。

ProcessTrust13Renew(Message)

同步處理 WS-Trust 1.3 更新訊息。

ProcessTrust13RenewResponse(Message)

同步處理 WS-Trust 1.3 RSTR/Renew 訊息。

ProcessTrust13Validate(Message)

處理 WS-Trust 1.3 同步驗證訊息。

ProcessTrust13ValidateResponse(Message)

同步處理 WS-Trust 1.3 RSTR/Validate 訊息。

ProcessTrustFeb2005Cancel(Message)

同步處理 2005 年 2 月 WS-Trust 取消訊息。

ProcessTrustFeb2005CancelResponse(Message)

同步處理 2005 年 2 月的 WS-Trust RSTR/取消訊息。

ProcessTrustFeb2005Issue(Message)

同步處理 2005 年 2 月 WS-Trust Issue 訊息。

ProcessTrustFeb2005IssueResponse(Message)

同步處理 2005 年 2 月 WS-Trust RSTR/Issue 訊息。

ProcessTrustFeb2005Renew(Message)

同步處理 2005 年 2 月 WS-Trust 續期訊息。

ProcessTrustFeb2005RenewResponse(Message)

同步處理 2005 年 2 月 WS-Trust RSTR/Renew 訊息。

ProcessTrustFeb2005Validate(Message)

同步處理 2005 年 2 月 WS-Trust 驗證訊息。

ProcessTrustFeb2005ValidateResponse(Message)

同步處理 2005 年 2 月 WS-Trust RSTR/Validate 訊息。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
Validate(ContractDescription, ServiceEndpoint)

當在衍生類別中實作時,確認合約與端點能支援合約行為。

ValidateDispatchContext(DispatchContext)

驗證指定的 DispatchContext 物件。

事件

名稱 Description
RequestFailed

當處理用戶端的 WS-Trust 請求時發生故障。

適用於