TransportSecurityBindingElement Class
Represents a custom binding element that supports mixed-mode security (such as, optimized message security over a secure transport).
Assembly: System.ServiceModel (in System.ServiceModel.dll)
System.ServiceModel.Channels::BindingElement
System.ServiceModel.Channels::SecurityBindingElement
System.ServiceModel.Channels::TransportSecurityBindingElement
| Name | Description | |
|---|---|---|
![]() | TransportSecurityBindingElement() | Creates an instance of the TransportSecurityBindingElement class. |
| Name | Description | |
|---|---|---|
![]() | AllowInsecureTransport | Gets or sets a value that indicates whether mixed-mode secured messages can be sent over an unsecured transport such as HTTP.(Inherited from SecurityBindingElement.) |
![]() | DefaultAlgorithmSuite | Gets or sets the message encryption and key-wrap algorithms.(Inherited from SecurityBindingElement.) |
![]() | EnableUnsecuredResponse | Gets or sets a value that indicates whether WCF can send and receive unsecured responses to secured requests.(Inherited from SecurityBindingElement.) |
![]() | EndpointSupportingTokenParameters | Gets the endpoint that supports token parameters.(Inherited from SecurityBindingElement.) |
![]() | IncludeTimestamp | Gets or sets a value that indicates whether time stamps are included in each message. (Inherited from SecurityBindingElement.) |
![]() | KeyEntropyMode | Gets or sets the source of entropy used to create keys.(Inherited from SecurityBindingElement.) |
![]() | LocalClientSettings | Gets the binding properties specific to local security settings used by the client.(Inherited from SecurityBindingElement.) |
![]() | LocalServiceSettings | Gets the binding properties specific to local security settings used by the service.(Inherited from SecurityBindingElement.) |
![]() | MessageSecurityVersion | Gets or sets the message security version.(Inherited from SecurityBindingElement.) |
![]() | OperationSupportingTokenParameters | Gets the collection of operation supporting token parameters.(Inherited from SecurityBindingElement.) |
![]() | OptionalEndpointSupportingTokenParameters | Gets the optional supporting token parameters for the service endpoint.(Inherited from SecurityBindingElement.) |
![]() | OptionalOperationSupportingTokenParameters | Gets the collection of optional operation supporting token parameters.(Inherited from SecurityBindingElement.) |
![]() | ProtectTokens | Gets or sets whether the security binding element protects tokens.(Inherited from SecurityBindingElement.) |
![]() | SecurityHeaderLayout | Gets or sets the ordering of the elements in the security header for this binding.(Inherited from SecurityBindingElement.) |
| Name | Description | |
|---|---|---|
![]() | BuildChannelFactory<TChannel>(BindingContext^) | 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.) |
![]() | BuildChannelListener<TChannel>(BindingContext^) | Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in. (Inherited from SecurityBindingElement.) |
![]() | CanBuildChannelFactory<TChannel>(BindingContext^) | Determines whether a channel factory of the specified type can be built. (Inherited from SecurityBindingElement.) |
![]() | CanBuildChannelListener<TChannel>(BindingContext^) | Determines whether a channel listener of the specified type can be built.(Inherited from SecurityBindingElement.) |
![]() | Clone() | Creates a new BindingElement object initialized from the current class. (Overrides BindingElement::Clone().) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetProperty<T>(BindingContext^) | Gets a property from the specified BindingContext.(Overrides SecurityBindingElement::GetProperty<T>(BindingContext^).) |
![]() | GetType() | |
![]() | SetKeyDerivation(Boolean) | Sets a value that indicates whether derived keys are required.(Inherited from SecurityBindingElement.) |
![]() | ToString() | Returns a description of this class.(Inherited from SecurityBindingElement.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IPolicyExportExtension::ExportPolicy(MetadataExporter^, PolicyConversionContext^) | Exports a custom policy assertion about bindings. |
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
Create a BindingElementCollection.
Create custom binding elements that will be above this binding element in the binding stack, such as the optional TransactionFlowBindingElement and ReliableSessionBindingElement.
Add these elements in the previously mentioned order to the BindingElementCollection using the InsertItem method.
Create an instance of TransportSecurityBindingElement and add it to the collection.
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.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



