ICertificateLoader Interface

Definição

Interface para implementar o carregamento de um certificado. Usar apenas ao carregar um certificado a partir de uma aplicação daemon, ou de uma aplicação ASP NET, usando MSAL .NET diretamente. Para uma aplicação ASP NET Core, o Microsoft Identity Web trata do carregamento dos certificados por si. <Exemplo>

IConfidentialClientApplication app;
ICertificateLoader certificateLoader = new DefaultCertificateLoader();
    certificateLoader.LoadIfNeeded(config.CertificateDescription);

   app = ConfidentialClientApplicationBuilder.Create(config.ClientId)
          .WithCertificate(config.CertificateDescription.Certificate)
          .WithAuthority(new Uri(config.Authority))
          .Build();
</exemplo>
public interface ICertificateLoader
type ICertificateLoader = interface
Public Interface ICertificateLoader
Derivado

Métodos

Name Descrição
LoadIfNeeded(CertificateDescription)

Carregue o certificado a partir da descrição, se necessário.

Aplica-se a