Export (0) Print
Expand All

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 LibraryTransportSecurityBindingElementCreates 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 can send and receive unsecured responses to secured requests. (Inherited from SecurityBindingElement.)
Public propertyEndpointSupportingTokenParametersGets the endpoint that supports token parameters. (Inherited from SecurityBindingElement.)
Public propertySupported by Portable Class LibraryIncludeTimestampGets 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 LibraryLocalClientSettingsGets 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 propertyMessageSecurityVersionGets 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 propertySecurityHeaderLayoutGets or sets the ordering of the elements in the security header for this binding. (Inherited from SecurityBindingElement.)
Top

  NameDescription
Public methodSupported by Portable Class LibraryBuildChannelFactory<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.)
Protected methodSupported by Portable Class LibraryBuildChannelFactoryCore<TChannel>When implemented, creates a channel factory of a specified type. (Inherited from SecurityBindingElement.)
Public methodBuildChannelListener<TChannel>Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in. (Inherited from SecurityBindingElement.)
Protected methodBuildChannelListenerCore<TChannel>When implemented, creates a channel listener of a specified type. (Inherited from SecurityBindingElement.)
Public methodSupported by Portable Class LibraryCanBuildChannelFactory<TChannel>Gets a value that indicates whether a channel factory of the specified type can be built. (Inherited from SecurityBindingElement.)
Public methodCanBuildChannelListener<TChannel>Gets a value that indicates whether a channel listener of the specified type can be built. (Inherited from SecurityBindingElement.)
Public methodSupported by Portable Class LibraryCloneCreates a new BindingElement object initialized from the current class. (Overrides BindingElement.Clone().)
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProperty<T>Gets a property from the specified BindingContext. (Overrides SecurityBindingElement.GetProperty<T>(BindingContext).)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetKeyDerivationSets a value that indicates whether derived keys are required. (Inherited from SecurityBindingElement.)
Public methodToStringReturns 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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.

Community Additions

ADD
Show:
© 2015 Microsoft