BasicHttpSecurity Clase

Definición

Configura los valores de seguridad de un enlace basicHttpBinding.Configures the security settings of a basicHttpBinding binding.

public ref class BasicHttpSecurity sealed
public sealed class BasicHttpSecurity
type BasicHttpSecurity = class
Public NotInheritable Class BasicHttpSecurity
Herencia
BasicHttpSecurity

Ejemplos

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

Constructores

BasicHttpSecurity()

Inicializa una nueva instancia de la clase BasicHttpSecurity.Initializes a new instance of the BasicHttpSecurity class.

Propiedades

Message

Obtiene la configuración de seguridad del nivel del mensaje para un enlace basicHttpBinding.Gets the message-level security settings for a basicHttpBinding binding.

Mode

Obtiene o establece el modo de seguridad para un enlace basicHttpBinding.Gets or sets the security mode for a basicHttpBinding binding.

Transport

Obtiene los valores de seguridad en el nivel de transporte para un enlace basicHttpBinding.Gets the transport-level security settings for a basicHttpBinding binding.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.Determines whether the specified object is equal to the current object.

(Heredado de Object)
GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Heredado de Object)
GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Object actual.Creates a shallow copy of the current Object.

(Heredado de Object)
ShouldSerializeMessage()

Determina si se debe serializar un elemento de mensaje.Determines whether a message element should be serialized.

ShouldSerializeTransport()

Determina si se debe serializar el elemento de transporte.Determines whether the transport element should be serialized.

ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Heredado de Object)

Se aplica a