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
屬性
實作

備註

實作下列服務合約介面:

建構函式

WSTrustServiceContract(SecurityTokenServiceConfiguration)

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

屬性

SecurityTokenServiceConfiguration

取得服務組態。

方法

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 Feb 1.3 取消訊息的非同步呼叫。

BeginTrust13CancelResponse(Message, AsyncCallback, Object)

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

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 更新訊息的非同步呼叫。

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/驗證訊息的非同步呼叫。

BeginTrustFeb2005Cancel(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 取消訊息的非同步呼叫。

BeginTrustFeb2005CancelResponse(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 RSTR/取消訊息的非同步呼叫。

BeginTrustFeb2005Issue(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 發出訊息的非同步呼叫。

BeginTrustFeb2005IssueResponse(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 RSTR/問題訊息的非同步呼叫。

BeginTrustFeb2005Renew(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 更新訊息的非同步呼叫。

BeginTrustFeb2005RenewResponse(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 RSTR/更新訊息的非同步呼叫。

BeginTrustFeb2005Validate(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 驗證訊息的非同步呼叫。

BeginTrustFeb2005ValidateResponse(Message, AsyncCallback, Object)

處理 WS-Trust Feb 2005 RSTR/驗證訊息的非同步呼叫。

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/取消訊息的非同步呼叫。

EndTrust13Issue(IAsyncResult)

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

EndTrust13IssueResponse(IAsyncResult)

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

EndTrust13Renew(IAsyncResult)

完成 WS-Trust 1.3 更新訊息的非同步呼叫。

EndTrust13RenewResponse(IAsyncResult)

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

EndTrust13Validate(IAsyncResult)

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

EndTrust13ValidateResponse(IAsyncResult)

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

EndTrustFeb2005Cancel(IAsyncResult)

完成 WS-Trust Feb 2005 Cancel 訊息的非同步呼叫。

EndTrustFeb2005CancelResponse(IAsyncResult)

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

EndTrustFeb2005Issue(IAsyncResult)

完成 Trust Feb 2005 取消訊息的非同步呼叫。

EndTrustFeb2005IssueResponse(IAsyncResult)

完成 WS-Trust Feb 2005 RSTR/問題訊息的非同步呼叫。

EndTrustFeb2005Renew(IAsyncResult)

完成 WS-Trust Feb 2005 更新訊息的非同步呼叫。

EndTrustFeb2005RenewResponse(IAsyncResult)

完成 WS-Trust Feb 2005 RSTR/更新訊息的非同步呼叫。

EndTrustFeb2005Validate(IAsyncResult)

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

EndTrustFeb2005ValidateResponse(IAsyncResult)

完成 WS-Trust Feb 2005 RSTR/驗證訊息的非同步呼叫。

Equals(Object)

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

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

在衍生類別中實作時,將自訂的 Web 服務描述語言 (WSDL) 項目寫入為合約產生的 WSDL。

ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

將自訂的 Web 服務描述語言 (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 事件並將指定的例外狀況轉換成 FaultException。 如果原始的例外狀況是 FaultException,或 PreserveOriginalException 旗標設為 true,就不會轉換 FaultException

ImportSchema(WsdlExporter, WsdlEndpointConversionContext, String)

如果尚未出現於 WSDL,就匯入所有必要的結構描述。

IncludeNamespace(WsdlEndpointConversionContext, String, String)

如果必要的 WS-Trust 命名空間尚未存在於 WSDL,就將其加入。

MemberwiseClone()

建立目前 Object 的淺層複製。

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

處理對 STS 的同步呼叫。

ProcessTrust13Cancel(Message)

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

ProcessTrust13CancelResponse(Message)

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

ProcessTrust13Issue(Message)

同步處理 WS-Trust 1.3 問題訊息。

ProcessTrust13IssueResponse(Message)

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

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/驗證訊息。

ProcessTrustFeb2005Cancel(Message)

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

ProcessTrustFeb2005CancelResponse(Message)

同步處理 WS-Trust Feb 2005 RSTR/取消訊息。

ProcessTrustFeb2005Issue(Message)

同步處理 WS-Trust Feb 2005 發行訊息。

ProcessTrustFeb2005IssueResponse(Message)

同步處理 WS-Trust Feb 2005 RSTR/問題訊息。

ProcessTrustFeb2005Renew(Message)

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

ProcessTrustFeb2005RenewResponse(Message)

同步處理 WS-Trust Feb 2005 RSTR/更新訊息。

ProcessTrustFeb2005Validate(Message)

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

ProcessTrustFeb2005ValidateResponse(Message)

同步處理 WS-Trust Feb 2005 RSTR/驗證訊息。

ToString()

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

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

在衍生類別中實作時,會確認合約和端點可以支援合約行為。

ValidateDispatchContext(DispatchContext)

驗證指定的 DispatchContext 物件。

事件

RequestFailed

當處理來自用戶端之 WS-Trust 要求失敗時發生。

適用於