BasicHttpSecurity BasicHttpSecurity BasicHttpSecurity BasicHttpSecurity Class

Definition

Configures the security settings of a basicHttpBinding binding.

public ref class BasicHttpSecurity sealed
public sealed class BasicHttpSecurity
type BasicHttpSecurity = class
Public NotInheritable Class BasicHttpSecurity
Inheritance
BasicHttpSecurityBasicHttpSecurityBasicHttpSecurityBasicHttpSecurity

Examples

BasicHttpBinding binding = new BasicHttpBinding();
binding.Name = "binding1";
binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
binding.Security.Mode = BasicHttpSecurityMode.Message;

BasicHttpSecurity security = binding.Security;
BasicHttpMessageSecurity msgSecurity = security.Message;

BasicHttpSecurityMode secMode = security.Mode;

HttpTransportSecurity transSec = security.Transport;

Console.WriteLine("The message-level security setting is {0}", secMode.ToString());
Console.WriteLine("The transport-level security setting is {0}", transSec.ToString());
Dim binding As BasicHttpBinding = New BasicHttpBinding()
binding.Name = "binding1"
binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard
binding.Security.Mode = BasicHttpSecurityMode.Message

Dim security As BasicHttpSecurity = binding.Security
Dim msgSecurity As BasicHttpMessageSecurity = security.Message

Dim secMode As BasicHttpSecurityMode = security.Mode

Dim transSec As HttpTransportSecurity = security.Transport

Console.WriteLine("The message-level security setting is {0}", secMode.ToString())
Console.WriteLine("The transport-level security setting is {0}", transSec.ToString())

Constructors

BasicHttpSecurity() BasicHttpSecurity() BasicHttpSecurity() BasicHttpSecurity()

Initializes a new instance of the BasicHttpSecurity class.

Properties

Message Message Message Message

Gets the message-level security settings for a basicHttpBinding binding.

Mode Mode Mode Mode

Gets or sets the security mode for a basicHttpBinding binding.

Transport Transport Transport Transport

Gets the transport-level security settings for a basicHttpBinding binding.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeMessage() ShouldSerializeMessage() ShouldSerializeMessage() ShouldSerializeMessage()

Determines whether a message element should be serialized.

ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport()

Determines whether the transport element should be serialized.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to