MessageSecurityOverRelayOneway Class
The message security on a one-way connection over the Windows Azure Service Bus relay.
Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
The MessageSecurityOverRelayOneway type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AlgorithmSuite | Gets or sets the algorithm suite to be used for securing messages at the SOAP level. |
![]() | ClientCredentialType | Gets or sets the type of client credential the client uses to authenticate itself to the service at the SOAP level. |
Windows Azure Service Bus supports only Full Trust code access security.
The NetEventRelayBinding and NetOnewayRelayBinding bindings both contain constructors that allow 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 MessageSecurityOverRelayOneway, or you can set them in an App.config file. If you use the App.config file, Windows Azure Service Bus will use MessageSecurityOverRelayOnewayElement to translate your configuration settings into the associated binding. For more information on security, see the Security and Protection, Securing and Authenticating an AppFabric Service Bus Connection, or Message Security in WCF in the WCF documentation.

