Bagikan melalui


SslStream.NegotiateClientCertificateAsync(CancellationToken) Metode

Definisi

Menegosiasikan sertifikat klien pada koneksi yang diautentikasi.

public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
[System.Runtime.Versioning.SupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.SupportedOSPlatform("linux")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public virtual System.Threading.Tasks.Task NegotiateClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
[<System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
abstract member NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.NegotiateClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function NegotiateClientCertificateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

cancellationToken
CancellationToken

Token yang akan dipantau untuk permintaan pembatalan.

Mengembalikan

Objek tugas yang mewakili operasi asinkron.

Atribut

Pengecualian

Token pembatalan dibatalkan. Pengecualian ini disimpan ke dalam tugas yang dikembalikan.

Keterangan

Anda dapat menegosiasikan sertifikat klien setelah autentikasi berhasil diproses melalui salah AuthenticateAs... satu metode.

Berlaku untuk