SslStream.NegotiateClientCertificateAsync(CancellationToken) Metoda

Definicja

Negocjuje certyfikat klienta dla uwierzytelnionego połączenia.

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

Parametry

cancellationToken
CancellationToken

Token do monitorowania żądań anulowania.

Zwraca

Obiekt zadania reprezentujący operację asynchroniczną.

Atrybuty

Wyjątki

Token anulowania został anulowany. Ten wyjątek jest przechowywany w zwracanym zadaniu.

Uwagi

Certyfikat klienta można negocjować po pomyślnym przetworzeniu uwierzytelniania za pomocą jednej z AuthenticateAs... metod.

Dotyczy