Export (0) Print
Expand All

WSTrustServiceContract Class

.NET Framework 4.5

Definition of the WS-Trust service contract implementation.

System.Object
  System.ServiceModel.Security.WSTrustServiceContract

Namespace:  System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[AspNetCompatibilityRequirementsAttribute(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehaviorAttribute(Name = "SecurityTokenService", Namespace = "http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice", 
	InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
public class WSTrustServiceContract : IWSTrustFeb2005SyncContract, 
	IWSTrust13SyncContract, IWSTrustFeb2005AsyncContract, IWSTrust13AsyncContract, IWsdlExportExtension, IContractBehavior

The WSTrustServiceContract type exposes the following members.

  NameDescription
Public methodWSTrustServiceContractInitializes a new instance of the WSTrustServiceContract class.
Top

  NameDescription
Public propertySecurityTokenServiceConfigurationGets the service configuration.
Top

  NameDescription
Public methodAddBindingParametersConfigures any binding elements to support the contract behavior.
Public methodApplyClientBehaviorThe contract description for which the extension is intended.
Public methodApplyDispatchBehaviorImplements a modification or extension of the client across a contract.
Protected methodBeginDispatchRequestBegins an asynchronous call to DispatchRequest.
Protected methodBeginProcessCoreHandles an asynchronous call to the STS.
Public methodBeginTrust13CancelProcesses an asynchronous call to the WS-Trust Feb 1.3 Cancel message.
Public methodBeginTrust13CancelResponseProcesses an asynchronous call to the WS-Trust 1.3 RSTR/Cancel message.
Public methodBeginTrust13IssueProcesses an asynchronous call to the WS-Trust 1.3 Issue message.
Public methodBeginTrust13IssueResponseProcesses an asynchronous call to the WS-Trust 1.3 RSTR/Issue message.
Public methodBeginTrust13RenewProcesses an asynchronous call to the WS-Trust 1.3 Renew message.
Public methodBeginTrust13RenewResponseProcesses an asynchronous call to the WS-Trust 1.3 RSTR/Renew message.
Public methodBeginTrust13ValidateProcesses an asynchronous call to the WS-Trust 1.3 Validate message.
Public methodBeginTrust13ValidateResponseProcesses an asynchronous call to the WS-Trust 1.3 RSTR/Validate message.
Public methodBeginTrustFeb2005CancelProcesses an asynchronous call to the WS-Trust Feb 2005 Cancel message.
Public methodBeginTrustFeb2005CancelResponseProcesses an asynchronous call to the WS-Trust Feb 2005 RSTR/Cancel message.
Public methodBeginTrustFeb2005IssueProcesses an asynchronous call to the WS-Trust Feb 2005 Issue message.
Public methodBeginTrustFeb2005IssueResponseProcesses an asynchronous call to the WS-Trust Feb 2005 RSTR/Issue message.
Public methodBeginTrustFeb2005RenewProcesses an asynchronous call to the WS-Trust Feb 2005 Renew message.
Public methodBeginTrustFeb2005RenewResponseProcesses an asynchronous call to the WS-Trust Feb 2005 RSTR/Renew message.
Public methodBeginTrustFeb2005ValidateProcesses an asynchronous call to the WS-Trust Feb 2005 Validate message.
Public methodBeginTrustFeb2005ValidateResponseProcesses an asynchronous call to the WS-Trust Feb 2005 RSTR/Validate message.
Protected methodCreateDispatchContextCreates a DispatchContext object for use by the DispatchRequest method.
Protected methodCreateSerializationContextCreates a WSTrustSerializationContext object using the local resolver information of the WSTrustServiceClient.
Protected methodDispatchRequestProcesses a WS-Trust request message, and optionally determines the appropriate response message and the WS-Addressing action for the response message.
Protected methodEndDispatchRequestCompletes an asynchronous call to DispatchRequest.
Protected methodEndProcessCoreCompletes an asynchronous call to the STS.
Public methodEndTrust13CancelCompletes an asynchronous call to the WS-Trust 1.3 Cancel message.
Public methodEndTrust13CancelResponseCompletes an asynchronous call to the WS-Trust 1.3 RSTR/Cancel message.
Public methodEndTrust13IssueCompletes an asynchronous call to the WS-Trust 1.3 Issue message.
Public methodEndTrust13IssueResponseCompletes an asynchronous call to the WS-Trust 1.3 RSTR/Issue message.
Public methodEndTrust13RenewCompletes an asynchronous call to the WS-Trust 1.3 Renew message.
Public methodEndTrust13RenewResponseCompletes an asynchronous call to the WS-Trust 1.3 RSTR/Renew message.
Public methodEndTrust13ValidateCompletes an asynchronous call to the WS-Trust 1.3 Validate message.
Public methodEndTrust13ValidateResponseCompletes an asynchronous call to the WS-Trust 1.3 RSTR/Validate message.
Public methodEndTrustFeb2005CancelCompletes an asynchronous call to the WS-Trust Feb 2005 Cancel message.
Public methodEndTrustFeb2005CancelResponseCompletes an asynchronous call to the WS-Trust Feb 2005 RSTR/Cancel message.
Public methodEndTrustFeb2005IssueComplete an Asynchronous call to Trust Feb 2005 Cancel message.
Public methodEndTrustFeb2005IssueResponseCompletes an asynchronous call to the WS-Trust Feb 2005 RSTR/Issue message.
Public methodEndTrustFeb2005RenewCompletes an asynchronous call to the WS-Trust Feb 2005 Renew message.
Public methodEndTrustFeb2005RenewResponseCompletes an asynchronous call to the WS-Trust Feb 2005 RSTR/Renew message.
Public methodEndTrustFeb2005ValidateCompletes an asynchronous call to the WS-Trust Feb 2005 Validate message.
Public methodEndTrustFeb2005ValidateResponseCompletes an asynchronous call to the WS-Trust Feb 2005 RSTR/Validate message.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExportContractWhen implemented in a derived class, writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract.
Public methodExportEndpointWrites custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFixMessageElementDuring WSDL generation, this method fixes a specified operation message element to refer to the RST and RSTR elements of the appropriate WS-Trust version.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetRstSecurityTokenResolverReturns the SecurityTokenResolver that will be used when resolving tokens and keys in the WS-Trust message body.
Protected methodGetSecurityHeaderTokenResolverReturns 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.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodHandleExceptionRaises 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.
Protected methodImportSchemaImports all of the required schemas if not already present in the WSDL.
Protected methodIncludeNamespaceAdds the required WS-Trust namespaces to the WSDL if not already present.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodProcessCoreHandles synchronous calls to the STS.
Public methodProcessTrust13CancelProcesses a WS-Trust 1.3 Cancel message synchronously.
Public methodProcessTrust13CancelResponseProcesses a WS-Trust 1.3 RSTR/Cancel message synchronously.
Public methodProcessTrust13IssueProcess a WS-Trust 1.3 Issue message synchronously.
Public methodProcessTrust13IssueResponseProcesses a WS-Trust 1.3 RSTR/Cancel message synchronously.
Public methodProcessTrust13RenewProcesses a WS-Trust 1.3 Renew message synchronously.
Public methodProcessTrust13RenewResponseProcesses a WS-Trust 1.3 RSTR/Renew message synchronously.
Public methodProcessTrust13ValidateProcesses a WS-Trust 1.3 Validate message synchronously.
Public methodProcessTrust13ValidateResponseProcesses a WS-Trust 1.3 RSTR/Validate message synchronously.
Public methodProcessTrustFeb2005CancelProcesses a WS-Trust Feb 2005 Cancel message synchronously.
Public methodProcessTrustFeb2005CancelResponseProcesses a WS-Trust Feb 2005 RSTR/Cancel message synchronously.
Public methodProcessTrustFeb2005IssueProcesses a WS-Trust Feb 2005 Issue message synchronously.
Public methodProcessTrustFeb2005IssueResponseProcesses a WS-Trust Feb 2005 RSTR/Issue message synchronously.
Public methodProcessTrustFeb2005RenewProcesses a WS-Trust Feb 2005 Renew message synchronously.
Public methodProcessTrustFeb2005RenewResponseProcesses a WS-Trust Feb 2005 RSTR/Renew message synchronously.
Public methodProcessTrustFeb2005ValidateProcesses a WS-Trust Feb 2005 Validate message synchronously.
Public methodProcessTrustFeb2005ValidateResponseProcesses a WS-Trust Feb 2005 RSTR/Validate message synchronously.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidateWhen implemented in a derived class, confirms that the contract and endpoint can support the contract behavior.
Protected methodValidateDispatchContextValidates the specified DispatchContext object.
Top

  NameDescription
Public eventRequestFailedOccurs when a failure happens processing a WS-Trust request from the client.
Top

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft