BasicHttpSecurity Class

 

Configures the security settings of a basicHttpBinding binding.

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

System.Object
  System.ServiceModel.BasicHttpSecurity

public sealed class BasicHttpSecurity

NameDescription
System_CAPS_pubmethodBasicHttpSecurity()

Initializes a new instance of the BasicHttpSecurity class.

NameDescription
System_CAPS_pubpropertyMessage

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

System_CAPS_pubpropertyMode

Gets or sets the security mode for a basicHttpBinding binding.

System_CAPS_pubpropertyTransport

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

NameDescription
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_pubmethodGetType()

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

System_CAPS_pubmethodShouldSerializeMessage()

Determines whether a message element should be serialized.

System_CAPS_pubmethodShouldSerializeTransport()

Determines whether the transport element should be serialized.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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());

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.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: