Bagikan melalui


SecurityBindingElement.CreateAnonymousForCertificateBindingElement Metode

Definisi

Membuat elemen pengikatan keamanan simetris yang dikonfigurasi untuk autentikasi klien anonim dan autentikasi server berbasis sertifikat.

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

Mengembalikan

Yang SymmetricSecurityBindingElement memegang pengikatan baru.

Contoh

Kode berikut menunjukkan cara memanggil metode ini.

SymmetricSecurityBindingElement b =
    SecurityBindingElement.
    CreateAnonymousForCertificateBindingElement();
Dim b As SymmetricSecurityBindingElement = _
SecurityBindingElement.CreateAnonymousForCertificateBindingElement()

Keterangan

Klien dan server harus dikonfigurasi di luar band dengan sertifikat layanan.

Pengikatan dibuat dengan MessageSecurityVersion diatur ke WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11 dan RequireSignatureConfirmation diatur ke true.

Berlaku untuk