WSTrustServiceContract Class

Definition

Definition of the WS-Trust service contract implementation.

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
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
Inheritance
WSTrustServiceContract
Attributes
Implements

Remarks

Implements the following service contract interfaces:

Constructors

WSTrustServiceContract(SecurityTokenServiceConfiguration)

Initializes a new instance of the WSTrustServiceContract class.

Properties

SecurityTokenServiceConfiguration

Gets the service configuration.

Methods

AddBindingParameters(ContractDescription, ServiceEndpoint, BindingParameterCollection)

Configures any binding elements to support the contract behavior.

ApplyClientBehavior(ContractDescription, ServiceEndpoint, ClientRuntime)

The contract description for which the extension is intended.

ApplyDispatchBehavior(ContractDescription, ServiceEndpoint, DispatchRuntime)

Implements a modification or extension of the client across a contract.

BeginDispatchRequest(DispatchContext, AsyncCallback, Object)

Begins an asynchronous call to DispatchRequest(DispatchContext).

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

Handles an asynchronous call to the STS.

BeginTrust13Cancel(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 1.3 Cancel message.

BeginTrust13CancelResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 RSTR/Cancel message.

BeginTrust13Issue(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 Issue message.

BeginTrust13IssueResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 RSTR/Issue message.

BeginTrust13Renew(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 Renew message.

BeginTrust13RenewResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 RSTR/Renew message.

BeginTrust13Validate(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 Validate message.

BeginTrust13ValidateResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust 1.3 RSTR/Validate message.

BeginTrustFeb2005Cancel(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 Cancel message.

BeginTrustFeb2005CancelResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 RSTR/Cancel message.

BeginTrustFeb2005Issue(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 Issue message.

BeginTrustFeb2005IssueResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 RSTR/Issue message.

BeginTrustFeb2005Renew(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 Renew message.

BeginTrustFeb2005RenewResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 RSTR/Renew message.

BeginTrustFeb2005Validate(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 Validate message.

BeginTrustFeb2005ValidateResponse(Message, AsyncCallback, Object)

Processes an asynchronous call to the WS-Trust Feb 2005 RSTR/Validate message.

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

Creates a DispatchContext object for use by the DispatchRequest(DispatchContext) method.

CreateSerializationContext()

Creates a WSTrustSerializationContext object using the local resolver information of the WSTrustServiceClient.

DispatchRequest(DispatchContext)

Processes a WS-Trust request message, and optionally determines the appropriate response message and the WS-Addressing action for the response message.

EndDispatchRequest(IAsyncResult)

Completes an asynchronous call to DispatchRequest(DispatchContext).

EndProcessCore(IAsyncResult, String, String, String)

Completes an asynchronous call to the STS.

EndTrust13Cancel(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 Cancel message.

EndTrust13CancelResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 RSTR/Cancel message.

EndTrust13Issue(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 Issue message.

EndTrust13IssueResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 RSTR/Issue message.

EndTrust13Renew(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 Renew message.

EndTrust13RenewResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 RSTR/Renew message.

EndTrust13Validate(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 Validate message.

EndTrust13ValidateResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust 1.3 RSTR/Validate message.

EndTrustFeb2005Cancel(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 Cancel message.

EndTrustFeb2005CancelResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 RSTR/Cancel message.

EndTrustFeb2005Issue(IAsyncResult)

Complete an Asynchronous call to Trust Feb 2005 Cancel message.

EndTrustFeb2005IssueResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 RSTR/Issue message.

EndTrustFeb2005Renew(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 Renew message.

EndTrustFeb2005RenewResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 RSTR/Renew message.

EndTrustFeb2005Validate(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 Validate message.

EndTrustFeb2005ValidateResponse(IAsyncResult)

Completes an asynchronous call to the WS-Trust Feb 2005 RSTR/Validate message.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExportContract(WsdlExporter, WsdlContractConversionContext)

When implemented in a derived class, writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract.

ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint.

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

During WSDL generation, this method fixes a specified operation message element to refer to the RST and RSTR elements of the appropriate WS-Trust version.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetRstSecurityTokenResolver()

Returns the SecurityTokenResolver that will be used when resolving tokens and keys in the WS-Trust message body.

GetSecurityHeaderTokenResolver(RequestContext)

Returns the SecurityTokenResolver that resolves the following security tokens contained in the security header of the current WCF message request: protection token, endorsing, or signed endorsing supporting tokens.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
HandleException(Exception, String, String, EnvelopeVersion)

Raises the RequestFailed event and converts the specified exception to a FaultException if required. If the original exception was a FaultException or if the PreserveOriginalException flag is set to true, the conversion to a FaultException is not performed.

ImportSchema(WsdlExporter, WsdlEndpointConversionContext, String)

Imports all of the required schemas if not already present in the WSDL.

IncludeNamespace(WsdlEndpointConversionContext, String, String)

Adds the required WS-Trust namespaces to the WSDL if not already present.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessCore(Message, WSTrustRequestSerializer, WSTrustResponseSerializer, String, String, String)

Handles synchronous calls to the STS.

ProcessTrust13Cancel(Message)

Processes a WS-Trust 1.3 Cancel message synchronously.

ProcessTrust13CancelResponse(Message)

Processes a WS-Trust 1.3 RSTR/Cancel message synchronously.

ProcessTrust13Issue(Message)

Process a WS-Trust 1.3 Issue message synchronously.

ProcessTrust13IssueResponse(Message)

Processes a WS-Trust 1.3 RSTR/Cancel message synchronously.

ProcessTrust13Renew(Message)

Processes a WS-Trust 1.3 Renew message synchronously.

ProcessTrust13RenewResponse(Message)

Processes a WS-Trust 1.3 RSTR/Renew message synchronously.

ProcessTrust13Validate(Message)

Processes a WS-Trust 1.3 Validate message synchronously.

ProcessTrust13ValidateResponse(Message)

Processes a WS-Trust 1.3 RSTR/Validate message synchronously.

ProcessTrustFeb2005Cancel(Message)

Processes a WS-Trust Feb 2005 Cancel message synchronously.

ProcessTrustFeb2005CancelResponse(Message)

Processes a WS-Trust Feb 2005 RSTR/Cancel message synchronously.

ProcessTrustFeb2005Issue(Message)

Processes a WS-Trust Feb 2005 Issue message synchronously.

ProcessTrustFeb2005IssueResponse(Message)

Processes a WS-Trust Feb 2005 RSTR/Issue message synchronously.

ProcessTrustFeb2005Renew(Message)

Processes a WS-Trust Feb 2005 Renew message synchronously.

ProcessTrustFeb2005RenewResponse(Message)

Processes a WS-Trust Feb 2005 RSTR/Renew message synchronously.

ProcessTrustFeb2005Validate(Message)

Processes a WS-Trust Feb 2005 Validate message synchronously.

ProcessTrustFeb2005ValidateResponse(Message)

Processes a WS-Trust Feb 2005 RSTR/Validate message synchronously.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(ContractDescription, ServiceEndpoint)

When implemented in a derived class, confirms that the contract and endpoint can support the contract behavior.

ValidateDispatchContext(DispatchContext)

Validates the specified DispatchContext object.

Events

RequestFailed

Occurs when a failure happens processing a WS-Trust request from the client.

Applies to