TransportSecurityBindingElement Class

Represents a custom binding element that supports mixed-mode security (such as, optimized message security over a secure transport).

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

public sealed class TransportSecurityBindingElement : SecurityBindingElement, 
	IPolicyExportExtension

The TransportSecurityBindingElement type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsTransportSecurityBindingElementCreates an instance of the TransportSecurityBindingElement class.
Top

  NameDescription
Public propertyAllowInsecureTransportGets or sets a value that indicates whether mixed-mode secured messages can be sent over an unsecured transport such as HTTP. (Inherited from SecurityBindingElement.)
Public propertyDefaultAlgorithmSuiteGets or sets the message encryption and key-wrap algorithms. (Inherited from SecurityBindingElement.)
Public propertyEnableUnsecuredResponseGets or sets a value that indicates whether WCF can send and receive unsecured responses to secured requests. (Inherited from SecurityBindingElement.)
Public propertySupported in .NET for Windows Store appsEndpointSupportingTokenParametersGets the endpoint that supports token parameters. (Inherited from SecurityBindingElement.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIncludeTimestampGets or sets a value that indicates whether time stamps are included in each message. (Inherited from SecurityBindingElement.)
Public propertyKeyEntropyModeGets or sets the source of entropy used to create keys. (Inherited from SecurityBindingElement.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsLocalClientSettingsGets the binding properties specific to local security settings used by the client. (Inherited from SecurityBindingElement.)
Public propertyLocalServiceSettingsGets the binding properties specific to local security settings used by the service. (Inherited from SecurityBindingElement.)
Public propertySupported in .NET for Windows Store appsMessageSecurityVersionGets or sets the message security version. (Inherited from SecurityBindingElement.)
Public propertyOperationSupportingTokenParametersGets the collection of operation supporting token parameters. (Inherited from SecurityBindingElement.)
Public propertyOptionalEndpointSupportingTokenParametersGets the optional supporting token parameters for the service endpoint. (Inherited from SecurityBindingElement.)
Public propertyOptionalOperationSupportingTokenParametersGets the collection of optional operation supporting token parameters. (Inherited from SecurityBindingElement.)
Public propertyProtectTokensGets or sets whether the security binding element protects tokens. (Inherited from SecurityBindingElement.)
Public propertySupported in .NET for Windows Store appsSecurityHeaderLayoutGets or sets the ordering of the elements in the security header for this binding. (Inherited from SecurityBindingElement.)
Top

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsBuildChannelFactory<TChannel>Creates a channel factory based on the SecurityBindingElement settings and the binding context passed in. The channel factory created is a SOAP message security channel factory, which internally has a reference to the channel factory that corresponds to the binding context, (which includes the transport channel factory). (Inherited from SecurityBindingElement.)
Public methodBuildChannelListener<TChannel>Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in. (Inherited from SecurityBindingElement.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsCanBuildChannelFactory<TChannel>Determines whether a channel factory of the specified type can be built. (Inherited from SecurityBindingElement.)
Public methodCanBuildChannelListener<TChannel>Determines whether a channel listener of the specified type can be built. (Inherited from SecurityBindingElement.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsCloneCreates a new BindingElement object initialized from the current class. (Overrides BindingElement.Clone().)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetProperty<T>Gets a property from the specified BindingContext. (Overrides SecurityBindingElement.GetProperty<T>(BindingContext).)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSetKeyDerivationSets a value that indicates whether derived keys are required. (Inherited from SecurityBindingElement.)
Public methodSupported in .NET for Windows Store appsToStringReturns a description of this class. (Inherited from SecurityBindingElement.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIPolicyExportExtension.ExportPolicyExports a custom policy assertion about bindings.
Top

A custom binding contains a collection of binding elements arranged in a specific order: the element that represents the top of the binding stack is added first, the next element down in the binding stack is added second, and so forth.

To add this class to a binding

  1. Create a BindingElementCollection.

  2. Create custom binding elements that will be above this binding element in the binding stack, such as the optional TransactionFlowBindingElement and ReliableSessionBindingElement.

  3. Add these elements in the previously mentioned order to the BindingElementCollection using the InsertItem method.

  4. Create an instance of TransportSecurityBindingElement and add it to the collection.

  5. Add any additional custom binding elements to the collection, such as TcpTransportBindingElement.

Note   Once an instance of this object is created, you should treat the properties of its base class, SecurityBindingElement, as immutable. Calling set on some properties may have unpredictable effects: the binding may behave as if the property retained its old value, with a run-time failure being the only indication of an issue. Two properties known to behave this way are KeyType and MessageSecurityVersion. There may be other properties for which this is true.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, 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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft