BasicHttpSecurity Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
BasicHttpSecurity
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() |
Initializes a new instance of the BasicHttpSecurity class. |
Properties
Message |
Gets the message-level security settings for a |
Mode |
Gets or sets the security mode for a |
Transport |
Gets the transport-level security settings for a |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ShouldSerializeMessage() |
Determines whether a message element should be serialized. |
ShouldSerializeTransport() |
Determines whether the transport element should be serialized. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |