AsymmetricSecurityBindingElement Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a custom binding element that supports channel security using asymmetric encryption. This binding element signs the message using the sender's authentication token and encrypts the message using the recipient's token.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Channels.BindingElement
    System.ServiceModel.Channels.SecurityBindingElement
      System.ServiceModel.Channels.AsymmetricSecurityBindingElement

[<Sealed>]
type AsymmetricSecurityBindingElement = 
    class
        inherit SecurityBindingElement
        interface IPolicyExportExtension
    end

NameDescription
System_CAPS_pubmethodAsymmetricSecurityBindingElement()

Creates an instance of this class.

System_CAPS_pubmethodAsymmetricSecurityBindingElement(SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient token parameters.

System_CAPS_pubmethodAsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)

Initializes a new instance of AsymmetricSecurityBindingElement with the specified recipient and initiator token parameters.

NameDescription
System_CAPS_pubpropertyAllowInsecureTransport

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

System_CAPS_pubpropertyAllowSerializedSigningTokenOnReply

Gets or sets a value that indicates whether serializing a signing token on a reply message is allowed.

System_CAPS_pubpropertyDefaultAlgorithmSuite

Gets or sets the message encryption and key-wrap algorithms.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyEnableUnsecuredResponse

Gets or sets a value that indicates whether WCF can send and receive unsecured responses to secured requests.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyEndpointSupportingTokenParameters

Gets the endpoint that supports token parameters.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyIncludeTimestamp

Gets or sets a value that indicates whether time stamps are included in each message. (Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyInitiatorTokenParameters

Specifies the token definition for the initiator.

System_CAPS_pubpropertyKeyEntropyMode

Gets or sets the source of entropy used to create keys.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyLocalClientSettings

Gets the binding properties specific to local security settings used by the client.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyLocalServiceSettings

Gets the binding properties specific to local security settings used by the service.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyMessageProtectionOrder

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

System_CAPS_pubpropertyMessageSecurityVersion

Gets or sets the message security version.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyOperationSupportingTokenParameters

Gets the collection of operation supporting token parameters.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyOptionalEndpointSupportingTokenParameters

Gets the optional supporting token parameters for the service endpoint.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyOptionalOperationSupportingTokenParameters

Gets the collection of optional operation supporting token parameters.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyProtectTokens

Gets or sets whether the security binding element protects tokens.(Inherited from SecurityBindingElement.)

System_CAPS_pubpropertyRecipientTokenParameters

Specifies the token definition for the recipient.

System_CAPS_pubpropertyRequireSignatureConfirmation

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

System_CAPS_pubpropertySecurityHeaderLayout

Gets or sets the ordering of the elements in the security header for this binding.(Inherited from SecurityBindingElement.)

NameDescription
System_CAPS_pubmethodBuildChannelFactory<'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.)

System_CAPS_pubmethodBuildChannelListener<'TChannel>(BindingContext)

Creates a channel listener based on the SecurityBindingElement settings and the binding context passed in. (Inherited from SecurityBindingElement.)

System_CAPS_pubmethodCanBuildChannelFactory<'TChannel>(BindingContext)

Determines whether a channel factory of the specified type can be built. (Inherited from SecurityBindingElement.)

System_CAPS_pubmethodCanBuildChannelListener<'TChannel>(BindingContext)

Determines whether a channel listener of the specified type can be built.(Inherited from SecurityBindingElement.)

System_CAPS_pubmethodClone()

Creates a new instance of this class initialized from the current one.(Overrides BindingElement.Clone().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetProperty<'T>(BindingContext)

Gets a specified object from the BindingContext.(Overrides SecurityBindingElement.GetProperty<'T>(BindingContext).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSetKeyDerivation(Boolean)

Sets a value that indicates whether derived keys are required. (Overrides SecurityBindingElement.SetKeyDerivation(Boolean).)

System_CAPS_pubmethodToString()

Returns a string that represents this AsymmetricSecurityBindingElement instance.(Overrides SecurityBindingElement.ToString().)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Exports a custom policy assertion about bindings, which is added to the Web Services Description Language (WSDL) information.

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

  2. Add the created elements in the preceding order to the BindingElementCollection using the InsertItem(Int32, BindingElement) method.

  3. Create an instance of AsymmetricSecurityBindingElement and add it to the collection.

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

Before using this class, you should determine if a standard binding meets your security requirements.

System_CAPS_noteNote

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 this is true of.

The following example shows how to use this class to create a custom binding that includes this class as a security binding element. For more information about the code in this example, see How to: Consistently Reference X.509 Certificates.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.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.

Return to top
Show: