SecurityBindingElement SecurityBindingElement SecurityBindingElement SecurityBindingElement Class

Definition

An abstract class that, when implemented, represents a binding element that supports channel SOAP message security.

public ref class SecurityBindingElement abstract : System::ServiceModel::Channels::BindingElement
public abstract class SecurityBindingElement : System.ServiceModel.Channels.BindingElement
type SecurityBindingElement = class
    inherit BindingElement
Public MustInherit Class SecurityBindingElement
Inherits BindingElement
Inheritance
SecurityBindingElementSecurityBindingElementSecurityBindingElementSecurityBindingElement
Derived

Remarks

This class is the base class for the SOAP message security binding elements in WCF. There are three implementations of this abstract class: SymmetricSecurityBindingElement, AsymmetricSecurityBindingElement, and TransportSecurityBindingElement. These implementations model the bindings defined in the WS-Security Policy specification.

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 on.

To add this class to a binding, do the following:

  1. Create a BindingElementCollection.

  2. Create a custom binding element that is above this binding element in the binding stack, such as the optional TransactionFlowBindingElement and ReliableSessionBindingElement.

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

  4. Create an instance of a security binding element derived from SecurityBindingElement, such as AsymmetricSecurityBindingElement, SymmetricSecurityBindingElement, or TransportSecurityBindingElement.

  5. Add the derived security binding element to the collection.

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

For more information about using a SecurityBindingElement, see SecurityBindingElement Authentication Modes and How to: Create a Custom Binding Using the SecurityBindingElement.

Note

Once a SecurityBindingElement object is created, you should treat its properties 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 runtime failure being the only indication of an issue. Two properties known to behave this way are KeyType and MessageSecurityVersion. There may be other properties of which this is also true.

Properties

AllowInsecureTransport AllowInsecureTransport AllowInsecureTransport AllowInsecureTransport

Gets or sets a value that indicates whether mixed-mode secured messages can be sent over an unsecured transport such as HTTP.

DefaultAlgorithmSuite DefaultAlgorithmSuite DefaultAlgorithmSuite DefaultAlgorithmSuite

Gets or sets the message encryption and key-wrap algorithms.

EnableUnsecuredResponse EnableUnsecuredResponse EnableUnsecuredResponse EnableUnsecuredResponse

Gets or sets a value that indicates whether WCF can send and receive unsecured responses to secured requests.

EndpointSupportingTokenParameters EndpointSupportingTokenParameters EndpointSupportingTokenParameters EndpointSupportingTokenParameters

Gets the endpoint that supports token parameters.

IncludeTimestamp IncludeTimestamp IncludeTimestamp IncludeTimestamp

Gets or sets a value that indicates whether time stamps are included in each message.

KeyEntropyMode KeyEntropyMode KeyEntropyMode KeyEntropyMode

Gets or sets the source of entropy used to create keys.

LocalClientSettings LocalClientSettings LocalClientSettings LocalClientSettings

Gets the binding properties specific to local security settings used by the client.

LocalServiceSettings LocalServiceSettings LocalServiceSettings LocalServiceSettings

Gets the binding properties specific to local security settings used by the service.

MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion

Gets or sets the message security version.

OperationSupportingTokenParameters OperationSupportingTokenParameters OperationSupportingTokenParameters OperationSupportingTokenParameters

Gets the collection of operation supporting token parameters.

OptionalEndpointSupportingTokenParameters OptionalEndpointSupportingTokenParameters OptionalEndpointSupportingTokenParameters OptionalEndpointSupportingTokenParameters

Gets the optional supporting token parameters for the service endpoint.

OptionalOperationSupportingTokenParameters OptionalOperationSupportingTokenParameters OptionalOperationSupportingTokenParameters OptionalOperationSupportingTokenParameters

Gets the collection of optional operation supporting token parameters.

ProtectTokens ProtectTokens ProtectTokens ProtectTokens

Gets or sets whether the security binding element protects tokens.

SecurityHeaderLayout SecurityHeaderLayout SecurityHeaderLayout SecurityHeaderLayout

Gets or sets the ordering of the elements in the security header for this binding.

Methods

BuildChannelFactory<TChannel>(BindingContext) BuildChannelFactory<TChannel>(BindingContext) BuildChannelFactory<TChannel>(BindingContext) 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).

BuildChannelFactoryCore<TChannel>(BindingContext) BuildChannelFactoryCore<TChannel>(BindingContext) BuildChannelFactoryCore<TChannel>(BindingContext) BuildChannelFactoryCore<TChannel>(BindingContext)

When implemented, creates a channel factory of a specified type.

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

Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in.

BuildChannelListenerCore<TChannel>(BindingContext) BuildChannelListenerCore<TChannel>(BindingContext) BuildChannelListenerCore<TChannel>(BindingContext) BuildChannelListenerCore<TChannel>(BindingContext)

When implemented, creates a channel listener of a specified type.

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()

When overridden in a derived class, returns a copy of the binding element object.

(Inherited from BindingElement)
CreateAnonymousForCertificateBindingElement() CreateAnonymousForCertificateBindingElement() CreateAnonymousForCertificateBindingElement() CreateAnonymousForCertificateBindingElement()

Creates a symmetric security binding element that is configured for anonymous client authentication and certificate-based server authentication.

CreateCertificateOverTransportBindingElement() CreateCertificateOverTransportBindingElement() CreateCertificateOverTransportBindingElement() CreateCertificateOverTransportBindingElement()

Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security.

CreateCertificateOverTransportBindingElement(MessageSecurityVersion) CreateCertificateOverTransportBindingElement(MessageSecurityVersion) CreateCertificateOverTransportBindingElement(MessageSecurityVersion) CreateCertificateOverTransportBindingElement(MessageSecurityVersion)

Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security.

CreateCertificateSignatureBindingElement() CreateCertificateSignatureBindingElement() CreateCertificateSignatureBindingElement() CreateCertificateSignatureBindingElement()

Creates a binding element using a certificate to sign messages. This binding element can be used only for one-way message exchanges and is capable only of signing the message.

CreateIssuedTokenBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenBindingElement(IssuedSecurityTokenParameters)

Creates a symmetric security binding element that is configured to require client authentication using a symmetric-key based issued token.

CreateIssuedTokenForCertificateBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForCertificateBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForCertificateBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForCertificateBindingElement(IssuedSecurityTokenParameters)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean) CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean)

Creates a symmetric security binding element that is configured to require client authentication based on an issued token and server authentication based on the server certificate.

CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters) CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters)

Creates a security binding element configured to require SOAP security based client authentication using an issued token. This binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

CreateKerberosBindingElement() CreateKerberosBindingElement() CreateKerberosBindingElement() CreateKerberosBindingElement()

Creates a symmetric security binding element that is configured to require client authentication based on the client's Kerberos token.

CreateKerberosOverTransportBindingElement() CreateKerberosOverTransportBindingElement() CreateKerberosOverTransportBindingElement() CreateKerberosOverTransportBindingElement()

Creates a security binding element that is configured to require SOAP-security based client authentication using the client's Kerberos token. This binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement()

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion)

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean)

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

CreateMutualCertificateDuplexBindingElement() CreateMutualCertificateDuplexBindingElement() CreateMutualCertificateDuplexBindingElement() CreateMutualCertificateDuplexBindingElement()

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication. This authentication mode can be used to secure duplex message-exchange patterns and requires the service to be configured with the client certificate out of band.

CreateMutualCertificateDuplexBindingElement(MessageSecurityVersion) CreateMutualCertificateDuplexBindingElement(MessageSecurityVersion) CreateMutualCertificateDuplexBindingElement(MessageSecurityVersion) CreateMutualCertificateDuplexBindingElement(MessageSecurityVersion)

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication. This authentication mode can be used to secure duplex message exchange patterns and requires the service to be configured with the client certificate out of band.

CreateSecureConversationBindingElement(SecurityBindingElement) CreateSecureConversationBindingElement(SecurityBindingElement) CreateSecureConversationBindingElement(SecurityBindingElement) CreateSecureConversationBindingElement(SecurityBindingElement)

Creates a symmetric security binding element that is configured to establish a secure conversation between the client and service. The security context token issued at the end of the secure conversation handshake is used to secure the messages. The bootstrap security binding element specifies how the secure conversation handshake messages are secured.

CreateSecureConversationBindingElement(SecurityBindingElement, Boolean) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean)

Creates a symmetric security binding element that is configured to establish a secure conversation between the client and service. The security context token issued at the end of the secure conversation handshake is used to secure the messages.

CreateSecureConversationBindingElement(SecurityBindingElement, Boolean, ChannelProtectionRequirements) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean, ChannelProtectionRequirements) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean, ChannelProtectionRequirements) CreateSecureConversationBindingElement(SecurityBindingElement, Boolean, ChannelProtectionRequirements)

Creates a symmetric security binding element that is configured to establish a secure conversation between the client and service. The security context token issued at the end of the secure conversation handshake is used to secure the messages. The bootstrap security binding element specifies how the secure conversation handshake messages are secured.

CreateSslNegotiationBindingElement(Boolean) CreateSslNegotiationBindingElement(Boolean) CreateSslNegotiationBindingElement(Boolean) CreateSslNegotiationBindingElement(Boolean)

Creates a symmetric security binding element that is configured to do SOAP-level SSL negotiation between the client and server, noting whether a client certificate is required.

CreateSslNegotiationBindingElement(Boolean, Boolean) CreateSslNegotiationBindingElement(Boolean, Boolean) CreateSslNegotiationBindingElement(Boolean, Boolean) CreateSslNegotiationBindingElement(Boolean, Boolean)

Creates a symmetric security binding element that does SOAP SSL negotiation, noting whether a client certificate and cancellation is required.

CreateSspiNegotiationBindingElement() CreateSspiNegotiationBindingElement() CreateSspiNegotiationBindingElement() CreateSspiNegotiationBindingElement()

Creates a symmetric security binding element that does SOAP SSPI negotiation based on the Negotiate authentication package.

CreateSspiNegotiationBindingElement(Boolean) CreateSspiNegotiationBindingElement(Boolean) CreateSspiNegotiationBindingElement(Boolean) CreateSspiNegotiationBindingElement(Boolean)

Creates a symmetric security binding element that does SOAP SSPI negotiation based on the Negotiate authentication package.

CreateSspiNegotiationOverTransportBindingElement() CreateSspiNegotiationOverTransportBindingElement() CreateSspiNegotiationOverTransportBindingElement() CreateSspiNegotiationOverTransportBindingElement()

Creates a security binding element that is configured for client authentication based on SOAP SSPI negotiation using the Negotiate authentication package. The binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

CreateSspiNegotiationOverTransportBindingElement(Boolean) CreateSspiNegotiationOverTransportBindingElement(Boolean) CreateSspiNegotiationOverTransportBindingElement(Boolean) CreateSspiNegotiationOverTransportBindingElement(Boolean)

Creates a security binding element that is configured for client authentication based on SOAP SSPI negotiation using the Negotiate authentication package. The binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

CreateUserNameForCertificateBindingElement() CreateUserNameForCertificateBindingElement() CreateUserNameForCertificateBindingElement() CreateUserNameForCertificateBindingElement()

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The created binding element requires the client to be configured with a service certificate that is out-of-band before opening a communication channel with a service.

CreateUserNameForSslBindingElement() CreateUserNameForSslBindingElement() CreateUserNameForSslBindingElement() CreateUserNameForSslBindingElement()

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

CreateUserNameForSslBindingElement(Boolean) CreateUserNameForSslBindingElement(Boolean) CreateUserNameForSslBindingElement(Boolean) CreateUserNameForSslBindingElement(Boolean)

Creates a symmetric security binding element that is configured to require user name- and password-based client authentication and certificate-based server authentication. The client authenticates the server using the SOAP-level SSL protocol.

CreateUserNameOverTransportBindingElement() CreateUserNameOverTransportBindingElement() CreateUserNameOverTransportBindingElement() CreateUserNameOverTransportBindingElement()

Creates a security binding element that is configured for client authentication based on a user name and password sent as part of the SOAP message. The binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

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 using the specified BindingContext.

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)
SetIssuerBindingContextIfRequired(SecurityTokenParameters, BindingContext) SetIssuerBindingContextIfRequired(SecurityTokenParameters, BindingContext) SetIssuerBindingContextIfRequired(SecurityTokenParameters, BindingContext) SetIssuerBindingContextIfRequired(SecurityTokenParameters, BindingContext)

Sets the key for the token requirement property whose value is the BindingContext used to talk to the issuing party if the requirement is for an issued token.

SetKeyDerivation(Boolean) SetKeyDerivation(Boolean) SetKeyDerivation(Boolean) SetKeyDerivation(Boolean)

Sets a value that indicates whether derived keys are required.

ToString() ToString() ToString() ToString()

Returns a description of this class.

Applies to