SALES: 1-800-867-1380

MessageSecurityOverRelayConnection Class

Describes the message security on a relay connection for a binding.

System.Object
  Microsoft.ServiceBus.MessageSecurityOverRelayConnection

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public sealed class MessageSecurityOverRelayConnection

The MessageSecurityOverRelayConnection type exposes the following members.

  NameDescription
Public propertyAlgorithmSuiteSets or gets the algorithm suite used for Message Security at the SOAP level.
Public propertyClientCredentialTypeGets or sets the type of client credential used for client authentication.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Windows Azure Service Bus supports only Full Trust code access security.

Most Windows Azure Service Bus binding constructors have an optional parameter that allows you to set the end-to-end security mode, using the EndToEndSecurityMode enumeration. If you set your security mode to EndToEndSecurityMode.Message or EndToEndSecurityMode.TransportWithMessageCredential, you will need to set additional properties on your binding that concern Message security. You can set these properties programmatically using MessageSecurityOverRelayConnection, or you can set them in an App.config file. If you use the App.config file, Windows Azure Service Bus will use MessageSecurityOverRelayConnectionElement to translate your configuration settings into the associated binding. For more information on security, see Securing and Authenticating an AppFabric Service Bus Connection or Message Security in WCF in the WCF documentation.

The following example shows how to get the object from a NetTcpRelayBinding.

NetTcpRelayBinding netTcpRelayBinding = new NetTcpRelayBinding(EndToEndSecurityMode.Message, RelayClientAuthenticationType.RelayAccessToken);
            
MessageSecurityOverRelayConnection messageSecurityOverRelay = netTcpRelayBinding.Security.Message;

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft