BasicHttpMessageSecurity Clase

Definición

Configura la configuración de seguridad del nivel de mensaje para BasicHttpBinding.Configures message-level security settings for BasicHttpBinding.

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

Ejemplos

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

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

SecurityAlgorithmSuite sas = msgSecurity.AlgorithmSuite;
BasicHttpMessageCredentialType credType = msgSecurity.ClientCredentialType;

Console.WriteLine("The algorithm suite used is {0}", sas.ToString());
Console.WriteLine("The client credential type used is {0}", credType.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 sas As SecurityAlgorithmSuite = msgSecurity.AlgorithmSuite
Dim credType As BasicHttpMessageCredentialType = msgSecurity.ClientCredentialType

Console.WriteLine("The algorithm suite used is {0}", sas.ToString())
Console.WriteLine("The client credential type used is {0}", credType.ToString())

Constructores

BasicHttpMessageSecurity()

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

Propiedades

AlgorithmSuite

Especifica el conjunto algoritmos que se va a usar con BasicHttpMessageSecurity.Specifies the algorithm suite to use with BasicHttpMessageSecurity.

ClientCredentialType

Especifica el tipo de credenciales con las cuales el cliente se autentica.Specifies the type of credential with which the client authenticates.

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

Devuelve si debe serializarse el conjunto de algoritmos que se va a usar para garantizar los mensajes en el nivel de SOAP.Returns whether the algorithm suite to be used for securing messages at the SOAP level should be serialized.

ShouldSerializeClientCredentialType()

Devuelve si se debe serializar el tipo de credencial de cliente.Returns whether the client credential type 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