DefaultCertificateLoader.LoadFirstCertificateAsync Method

Definition

Load the first certificate from the certificate description list.

public static System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2?> LoadFirstCertificateAsync (System.Collections.Generic.IEnumerable<Microsoft.Identity.Web.CertificateDescription> certificateDescriptions);
static member LoadFirstCertificateAsync : seq<Microsoft.Identity.Web.CertificateDescription> -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public Shared Function LoadFirstCertificateAsync (certificateDescriptions As IEnumerable(Of CertificateDescription)) As Task(Of X509Certificate2)

Parameters

certificateDescriptions
IEnumerable<CertificateDescription>

Description of the certificates.

Returns

First certificate in the certificate description list.

Applies to