BasicHttpMessageSecurity BasicHttpMessageSecurity BasicHttpMessageSecurity BasicHttpMessageSecurity Class

Définition

Configure des paramètres de sécurité au niveau du message pour BasicHttpBinding.Configures message-level security settings for BasicHttpBinding.

public ref class BasicHttpMessageSecurity sealed
public sealed class BasicHttpMessageSecurity
type BasicHttpMessageSecurity = class
Public NotInheritable Class BasicHttpMessageSecurity
Héritage
BasicHttpMessageSecurityBasicHttpMessageSecurityBasicHttpMessageSecurityBasicHttpMessageSecurity

Exemples

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

Constructeurs

BasicHttpMessageSecurity() BasicHttpMessageSecurity() BasicHttpMessageSecurity() BasicHttpMessageSecurity()

Initialise une nouvelle instance de la classe BasicHttpMessageSecurity.Initializes a new instance of the BasicHttpMessageSecurity class.

Propriétés

AlgorithmSuite AlgorithmSuite AlgorithmSuite AlgorithmSuite

Spécifie la suite d'algorithmes à utiliser avec BasicHttpMessageSecurity.Specifies the algorithm suite to use with BasicHttpMessageSecurity.

ClientCredentialType ClientCredentialType ClientCredentialType ClientCredentialType

Spécifie le type d'informations d'identification utilisées par le client pour s'authentifier.Specifies the type of credential with which the client authenticates.

Méthodes

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

Détermine si l'objet spécifié est identique à l'objet actuel.Determines whether the specified object is equal to the current object.

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

Fait office de fonction de hachage par défaut.Serves as the default hash function.

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

Obtient le Type de l'instance actuelle.Gets the Type of the current instance.

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

Crée une copie superficielle de l'objet Object actuel.Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeAlgorithmSuite() ShouldSerializeAlgorithmSuite() ShouldSerializeAlgorithmSuite() ShouldSerializeAlgorithmSuite()

Retourne une valeur indiquant si la suite d’algorithmes à utiliser pour la sécurisation des messages au niveau du SOAP doit être sérialisée.Returns whether the algorithm suite to be used for securing messages at the SOAP level should be serialized.

ShouldSerializeClientCredentialType() ShouldSerializeClientCredentialType() ShouldSerializeClientCredentialType() ShouldSerializeClientCredentialType()

Retourne une valeur indiquant si le type d'informations d'identification du client doit être sérialisé.Returns whether the client credential type should be serialized.

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

Retourne une chaîne qui représente l'objet actuel.Returns a string that represents the current object.

(Inherited from Object)

S’applique à