SymmetricSecurityBindingElement Class

Definition

Represents a custom binding element that supports channel security using symmetric encryption.

public sealed class SymmetricSecurityBindingElement : System.ServiceModel.Channels.SecurityBindingElement, System.ServiceModel.Description.IPolicyExportExtension
Inheritance
SymmetricSecurityBindingElement
Implements

Remarks

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 is above this binding element in the binding stack, such as the optional TransactionFlowBindingElement and ReliableSessionBindingElement.

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

  4. Create an instance of SymmetricSecurityBindingElement 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.

Constructors

SymmetricSecurityBindingElement()

Initializes a new instance of the SymmetricSecurityBindingElement class.

SymmetricSecurityBindingElement(SecurityTokenParameters)

Initializes a new instance of the SymmetricSecurityBindingElement class using specified security token parameters.

Properties

MessageProtectionOrder

Gets or sets the order of message encryption and signing for this binding.

ProtectionTokenParameters

Gets or sets the protection token parameters.

RequireSignatureConfirmation

Gets or sets a value that indicates whether message signatures must be confirmed.

Methods

Clone()

Creates a new instance of this class initialized from the current one.

GetProperty<T>(BindingContext)

Gets a specified object from the BindingContext.

SetKeyDerivation(Boolean)

Sets a value that indicates whether derived keys are required.

ToString()

Returns a string that represents this SymmetricSecurityBindingElement instance.

Equals(Object) Inherited from Object
Equals(Object, Object) Inherited from Object
GetHashCode() Inherited from Object
GetType() Inherited from Object
MemberwiseClone() Inherited from Object
ReferenceEquals(Object, Object) Inherited from Object
AllowInsecureTransport Inherited from SecurityBindingElement
BuildChannelFactory<TChannel>(BindingContext) Inherited from SecurityBindingElement
BuildChannelFactoryCore<TChannel>(BindingContext) Inherited from SecurityBindingElement
BuildChannelListener<TChannel>(BindingContext) Inherited from SecurityBindingElement
BuildChannelListenerCore<TChannel>(BindingContext) Inherited from SecurityBindingElement
CanBuildChannelFactory<TChannel>(BindingContext) Inherited from SecurityBindingElement
CanBuildChannelListener<TChannel>(BindingContext) Inherited from SecurityBindingElement
CreateAnonymousForCertificateBindingElement() Inherited from SecurityBindingElement
CreateCertificateOverTransportBindingElement() Inherited from SecurityBindingElement
CreateCertificateOverTransportBindingElement(MessageSecurityVersion) Inherited from SecurityBindingElement
CreateCertificateSignatureBindingElement() Inherited from SecurityBindingElement
CreateIssuedTokenBindingElement(IssuedSecurityTokenParameters) Inherited from SecurityBindingElement
CreateIssuedTokenForCertificateBindingElement(IssuedSecurityTokenParameters) Inherited from SecurityBindingElement
CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters) Inherited from SecurityBindingElement
CreateIssuedTokenForSslBindingElement(IssuedSecurityTokenParameters, Boolean) Inherited from SecurityBindingElement
CreateIssuedTokenOverTransportBindingElement(IssuedSecurityTokenParameters) Inherited from SecurityBindingElement
CreateKerberosBindingElement() Inherited from SecurityBindingElement
CreateKerberosOverTransportBindingElement() Inherited from SecurityBindingElement
CreateMutualCertificateBindingElement() Inherited from SecurityBindingElement
CreateMutualCertificateBindingElement(MessageSecurityVersion) Inherited from SecurityBindingElement
CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) Inherited from SecurityBindingElement
CreateMutualCertificateDuplexBindingElement() Inherited from SecurityBindingElement
CreateMutualCertificateDuplexBindingElement(MessageSecurityVersion) Inherited from SecurityBindingElement
CreateSecureConversationBindingElement(SecurityBindingElement) Inherited from SecurityBindingElement
CreateSecureConversationBindingElement(SecurityBindingElement, Boolean) Inherited from SecurityBindingElement
CreateSecureConversationBindingElement(SecurityBindingElement, Boolean, ChannelProtectionRequirements) Inherited from SecurityBindingElement
CreateSslNegotiationBindingElement(Boolean) Inherited from SecurityBindingElement
CreateSslNegotiationBindingElement(Boolean, Boolean) Inherited from SecurityBindingElement
CreateSspiNegotiationBindingElement() Inherited from SecurityBindingElement
CreateSspiNegotiationBindingElement(Boolean) Inherited from SecurityBindingElement
CreateSspiNegotiationOverTransportBindingElement() Inherited from SecurityBindingElement
CreateSspiNegotiationOverTransportBindingElement(Boolean) Inherited from SecurityBindingElement
CreateUserNameForCertificateBindingElement() Inherited from SecurityBindingElement
CreateUserNameForSslBindingElement() Inherited from SecurityBindingElement
CreateUserNameForSslBindingElement(Boolean) Inherited from SecurityBindingElement
CreateUserNameOverTransportBindingElement() Inherited from SecurityBindingElement
DefaultAlgorithmSuite Inherited from SecurityBindingElement
EnableUnsecuredResponse Inherited from SecurityBindingElement
EndpointSupportingTokenParameters Inherited from SecurityBindingElement
IncludeTimestamp Inherited from SecurityBindingElement
KeyEntropyMode Inherited from SecurityBindingElement
LocalClientSettings Inherited from SecurityBindingElement
LocalServiceSettings Inherited from SecurityBindingElement
MessageSecurityVersion Inherited from SecurityBindingElement
OperationSupportingTokenParameters Inherited from SecurityBindingElement
OptionalEndpointSupportingTokenParameters Inherited from SecurityBindingElement
OptionalOperationSupportingTokenParameters Inherited from SecurityBindingElement
ProtectTokens Inherited from SecurityBindingElement
SecurityHeaderLayout Inherited from SecurityBindingElement
SetIssuerBindingContextIfRequired(SecurityTokenParameters, BindingContext) Inherited from SecurityBindingElement

Explicit Interface Implementations

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Exports a custom policy assertion about bindings.

Applies to