WindowsStreamSecurityBindingElement WindowsStreamSecurityBindingElement WindowsStreamSecurityBindingElement WindowsStreamSecurityBindingElement Class

Definition

Represents the binding element used to specify Windows stream security settings.

public ref class WindowsStreamSecurityBindingElement : System::ServiceModel::Channels::BindingElement, System::ServiceModel::Channels::ISecurityCapabilities, System::ServiceModel::Channels::ITransportTokenAssertionProvider, System::ServiceModel::Description::IPolicyExportExtension
public class WindowsStreamSecurityBindingElement : System.ServiceModel.Channels.BindingElement, System.ServiceModel.Channels.ISecurityCapabilities, System.ServiceModel.Channels.ITransportTokenAssertionProvider, System.ServiceModel.Description.IPolicyExportExtension
type WindowsStreamSecurityBindingElement = class
    inherit BindingElement
    interface ISecurityCapabilities
    interface IPolicyExportExtension
    interface ITransportTokenAssertionProvider
Public Class WindowsStreamSecurityBindingElement
Inherits BindingElement
Implements IPolicyExportExtension, ISecurityCapabilities, ITransportTokenAssertionProvider
Inheritance
WindowsStreamSecurityBindingElementWindowsStreamSecurityBindingElementWindowsStreamSecurityBindingElementWindowsStreamSecurityBindingElement
Implements

Remarks

Transports that use a stream-oriented protocol such as TCP and named pipes support stream-based transport upgrades. Specifically, WCF provides security upgrades. The configuration of this transport security is encapsulated by this class as well as by SslStreamSecurityBindingElement, which can be configured and added to a custom binding. In addition, a third party can write its own custom StreamSecurityBindingElement. These binding elements extend the StreamUpgradeBindingElement class that is called to build the client and server stream upgrade providers.

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

To add this class to a binding

  1. Create a BindingElementCollection.

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

  3. Add the created elements in the order described previously to the BindingElementCollection using the InsertItem method.

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

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

Constructors

WindowsStreamSecurityBindingElement() WindowsStreamSecurityBindingElement() WindowsStreamSecurityBindingElement() WindowsStreamSecurityBindingElement()

Initializes a new instance of the WindowsStreamSecurityBindingElement class.

WindowsStreamSecurityBindingElement(WindowsStreamSecurityBindingElement) WindowsStreamSecurityBindingElement(WindowsStreamSecurityBindingElement) WindowsStreamSecurityBindingElement(WindowsStreamSecurityBindingElement) WindowsStreamSecurityBindingElement(WindowsStreamSecurityBindingElement)

Initializes a new instance of the WindowsStreamSecurityBindingElement class from an existing instance.

Properties

ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel

Gets or sets the protection level.

Methods

BuildChannelFactory<TChannel>(BindingContext) BuildChannelFactory<TChannel>(BindingContext) BuildChannelFactory<TChannel>(BindingContext) BuildChannelFactory<TChannel>(BindingContext)

Creates a channel factory that can be used to create a channel.

BuildChannelListener<TChannel>(BindingContext) BuildChannelListener<TChannel>(BindingContext) BuildChannelListener<TChannel>(BindingContext) BuildChannelListener<TChannel>(BindingContext)

Creates a channel listener of the specified type.

BuildClientStreamUpgradeProvider(BindingContext) BuildClientStreamUpgradeProvider(BindingContext) BuildClientStreamUpgradeProvider(BindingContext) BuildClientStreamUpgradeProvider(BindingContext)

Creates an instance on the client of the StreamUpgradeProvider based on the channel context provided.

BuildServerStreamUpgradeProvider(BindingContext) BuildServerStreamUpgradeProvider(BindingContext) BuildServerStreamUpgradeProvider(BindingContext) BuildServerStreamUpgradeProvider(BindingContext)

Creates an instance on the server of the StreamUpgradeProvider based on the channel context provided.

CanBuildChannelFactory<TChannel>(BindingContext) CanBuildChannelFactory<TChannel>(BindingContext) CanBuildChannelFactory<TChannel>(BindingContext) CanBuildChannelFactory<TChannel>(BindingContext)

Determines whether a channel factory of the specified type can be built.

CanBuildChannelListener<TChannel>(BindingContext) CanBuildChannelListener<TChannel>(BindingContext) CanBuildChannelListener<TChannel>(BindingContext) CanBuildChannelListener<TChannel>(BindingContext)

Determines whether a channel listener of the specified type can be built.

Clone() Clone() Clone() Clone()

Creates a new binding element from this instance of the class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetProperty<T>(BindingContext) GetProperty<T>(BindingContext) GetProperty<T>(BindingContext) GetProperty<T>(BindingContext)

Gets a specified object from the BindingContext.

GetTransportTokenAssertion() GetTransportTokenAssertion() GetTransportTokenAssertion() GetTransportTokenAssertion()

Gets the XmlElement that represents the transport token used in the security binding.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext) IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext) IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext) IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Exports a custom policy assertion about Windows stream security.

ISecurityCapabilities.SupportedRequestProtectionLevel ISecurityCapabilities.SupportedRequestProtectionLevel ISecurityCapabilities.SupportedRequestProtectionLevel ISecurityCapabilities.SupportedRequestProtectionLevel
ISecurityCapabilities.SupportedResponseProtectionLevel ISecurityCapabilities.SupportedResponseProtectionLevel ISecurityCapabilities.SupportedResponseProtectionLevel ISecurityCapabilities.SupportedResponseProtectionLevel
ISecurityCapabilities.SupportsClientAuthentication ISecurityCapabilities.SupportsClientAuthentication ISecurityCapabilities.SupportsClientAuthentication ISecurityCapabilities.SupportsClientAuthentication
ISecurityCapabilities.SupportsClientWindowsIdentity ISecurityCapabilities.SupportsClientWindowsIdentity ISecurityCapabilities.SupportsClientWindowsIdentity ISecurityCapabilities.SupportsClientWindowsIdentity
ISecurityCapabilities.SupportsServerAuthentication ISecurityCapabilities.SupportsServerAuthentication ISecurityCapabilities.SupportsServerAuthentication ISecurityCapabilities.SupportsServerAuthentication

Applies to

See also