Share via


ITlsConnectionFeature.GetClientCertificateAsync(CancellationToken) Method

Definition

Asynchronously retrieves the client certificate, if any.

public:
 System::Threading::Tasks::Task<System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ GetClientCertificateAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2?> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public Function GetClientCertificateAsync (cancellationToken As CancellationToken) As Task(Of X509Certificate2)

Parameters

cancellationToken
CancellationToken

Returns

Applies to