SecurityBindingElement.CreateMutualCertificateBindingElement SecurityBindingElement.CreateMutualCertificateBindingElement SecurityBindingElement.CreateMutualCertificateBindingElement SecurityBindingElement.CreateMutualCertificateBindingElement Method

Définition

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

Surcharges

CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement()

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion)

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean)

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

Remarques

Le client doit être configuré avec son certificat ainsi qu'avec le certificat du serveur.The client must be configured with its certificate as well as the server's certificate. Le serveur doit être configuré avec son certificat.The server must be configured with its certificate.

CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement() CreateMutualCertificateBindingElement()

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

public:
 static System::ServiceModel::Channels::SecurityBindingElement ^ CreateMutualCertificateBindingElement();
public static System.ServiceModel.Channels.SecurityBindingElement CreateMutualCertificateBindingElement ();
static member CreateMutualCertificateBindingElement : unit -> System.ServiceModel.Channels.SecurityBindingElement
Public Shared Function CreateMutualCertificateBindingElement () As SecurityBindingElement

Retours

Exemples

L'exemple de code suivant montre comment appeler cette méthode.The following code shows how to call this method.

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

Remarques

La liaison est configurée afin qu'une nouvelle clé symétrique aléatoire (chiffrée pour le serveur) soit générée pour chaque demande du client et soit utilisée pour protéger aussi bien la demande que la réponse du serveur.The binding is configured so that a new random symmetric key (encrypted for the server) is generated for every request by the client and is used to protect the request as well as the response from the server. Le certificat du client est utilisé comme un jeton de prise en charge d'approbation sur la demande.The client's certificate is used as an endorsing supporting token on the request.

Un AsymmetricSecurityBindingElement est en fait créé.A AsymmetricSecurityBindingElement is actually created.

CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion) CreateMutualCertificateBindingElement(MessageSecurityVersion)

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

public:
 static System::ServiceModel::Channels::SecurityBindingElement ^ CreateMutualCertificateBindingElement(System::ServiceModel::MessageSecurityVersion ^ version);
public static System.ServiceModel.Channels.SecurityBindingElement CreateMutualCertificateBindingElement (System.ServiceModel.MessageSecurityVersion version);
static member CreateMutualCertificateBindingElement : System.ServiceModel.MessageSecurityVersion -> System.ServiceModel.Channels.SecurityBindingElement
Public Shared Function CreateMutualCertificateBindingElement (version As MessageSecurityVersion) As SecurityBindingElement

Paramètres

version
MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion

Version de sécurité du message.The message security version.

Retours

Exceptions

Remarques

Si la version est WSSecurity10, l’élément de liaison est alors configuré de sorte que la demande du client soit signée par son certificat et chiffrée avec le certificat du serveur.If the version is WSSecurity10, then the binding element is configured so that the client request is signed by its certificate and encrypted with the server certificate.

Si la version est WSSecurity11, l'élément de liaison est alors configuré de sorte qu'une nouvelle clé symétrique aléatoire (chiffrée pour le serveur) soit générée pour chaque demande du client et soit utilisée pour protéger aussi bien la demande que la réponse du serveur.If the version is WSSecurity11, then the binding element is configured so that a new random symmetric key (encrypted for the server) is generated for every request by the client and is used to protect the request as well as the response from the server. Le certificat du client est utilisé comme un jeton de prise en charge d'approbation sur la demande.The client's certificate is used as an endorsing supporting token on the request.

Notes

Une fois qu'un objet SecurityBindingElement est créé en appelant cette méthode, la propriété MessageSecurityVersion est immuable.Once a SecurityBindingElement object is created by calling this method, the MessageSecurityVersion property is immutable. Appeler dessus set ne la modifie pas.Calling set on it does not change it.

CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean) CreateMutualCertificateBindingElement(MessageSecurityVersion, Boolean)

Crée un élément de liaison de sécurité asymétrique qui est configuré pour requérir l'authentification du client et du serveur par certificat.Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

public:
 static System::ServiceModel::Channels::SecurityBindingElement ^ CreateMutualCertificateBindingElement(System::ServiceModel::MessageSecurityVersion ^ version, bool allowSerializedSigningTokenOnReply);
public static System.ServiceModel.Channels.SecurityBindingElement CreateMutualCertificateBindingElement (System.ServiceModel.MessageSecurityVersion version, bool allowSerializedSigningTokenOnReply);
static member CreateMutualCertificateBindingElement : System.ServiceModel.MessageSecurityVersion * bool -> System.ServiceModel.Channels.SecurityBindingElement
Public Shared Function CreateMutualCertificateBindingElement (version As MessageSecurityVersion, allowSerializedSigningTokenOnReply As Boolean) As SecurityBindingElement

Paramètres

version
MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion MessageSecurityVersion

Version de sécurité du message.The message security version.

allowSerializedSigningTokenOnReply
Boolean Boolean Boolean Boolean

true pour autoriser un jeton de signature sérialisé dans la réponse ; sinon false.true to allow a serialized signing token on the reply; otherwise, false.

Retours

Exceptions

Remarques

Le paramètre allowSerializedSigningTokenOnReply, lorsqu'il a la valeur true, active l'interopérabilité avec les versions antérieures de WSE (Web Services Enhancements).The allowSerializedSigningTokenOnReply parameter, when true, enables interoperability with older versions of Web Services Enhancements (WSE).

Notes

Une fois qu'un objet SecurityBindingElement est créé en appelant cette méthode, la propriété MessageSecurityVersion doit être traitée comme étant immuable.Once a SecurityBindingElement object is created by calling this method, the MessageSecurityVersion property should be treated as immutable. Un comportement incohérent de la liaison peut se produire si cette valeur est modifiée.Inconsistent binding behavior may occur if this value is modified.

S’applique à