Table of Contents

Class WSHttpRelaySecurityElement

Namespace
Microsoft.ServiceBus.Configuration
Assembly
Microsoft.ServiceBus.dll

Represents a configuration element that configures the security for a WS-HTTP service through the Azure Service Bus relay.

public sealed class WSHttpRelaySecurityElement : ConfigurationElement
Inheritance
WSHttpRelaySecurityElement

Constructors

WSHttpRelaySecurityElement()

public WSHttpRelaySecurityElement()

Properties

Message

Gets the security settings for the message.

public NonDualMessageSecurityOverRelayHttpElement Message { get; }

Property Value

NonDualMessageSecurityOverRelayHttpElement

Returns a NonDualMessageSecurityOverRelayHttpElement that specifies the security settings for the message.

Mode

Gets or sets the mode of security that is used by an endpoint configured to receive HTTP requests.

public EndToEndSecurityMode Mode { get; set; }

Property Value

EndToEndSecurityMode

Returns a EndToEndSecurityMode that specifies the type of security that is applied. The default value is Message.

Properties

protected override ConfigurationPropertyCollection Properties { get; }

Property Value

ConfigurationPropertyCollection

RelayClientAuthenticationType

Gets or sets the relay client authentication type used by the service client.

public RelayClientAuthenticationType RelayClientAuthenticationType { get; set; }

Property Value

RelayClientAuthenticationType

Returns a RelayClientAuthenticationType that contains the authentication type.

Transport

Gets the security settings for the transport.

public WSHttpRelayTransportSecurityElement Transport { get; }

Property Value

WSHttpRelayTransportSecurityElement

Returns a WSHttpRelayTransportSecurityElement that specifies the security settings for the transport.Use the WSHttpRelayTransportSecurityElement object returned by this property to set the transport security parameters for the WSHttpRelayBinding. If the TransportCredentialOnly value is specified by Microsoft.ServiceBus.WSHttpRelayBinding.#ctor(Microsoft.ServiceBus.EndToEndSecurityMode,Microsoft.ServiceBus.RelayClientAuthenticationType,System.Boolean), then the settings provided by the Transport property become effective for the service endpoint. The value of this property can set only in the constructor it as an explicit parameter and its value cannot be set again after the binding instance is created.