DefaultCertificateLoader 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
憑證載入器。 只有在從守護程序或 ASP NET 應用程式直接使用 MSAL .NET 載入憑證時才使用。 對於 ASP NET Core 應用程式,Microsoft Identity Web 會幫你處理憑證載入。 <範例>
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();
</範例>
public class DefaultCertificateLoader : Microsoft.Identity.Web.DefaultCredentialsLoader, Microsoft.Identity.Web.ICertificateLoader
type DefaultCertificateLoader = class
inherit DefaultCredentialsLoader
interface ICertificateLoader
Public Class DefaultCertificateLoader
Inherits DefaultCredentialsLoader
Implements ICertificateLoader
- 繼承
- 實作
建構函式
屬性
| 名稱 | Description |
|---|---|
| CredentialSourceLoaders |
根據憑證來源的憑證載入器字典。 應用程式可以新增更多資料以處理更多憑證來源。 (繼承來源 DefaultCredentialsLoader) |
| CustomSignedAssertionCredentialSourceLoaders |
自訂簽署斷言憑證來源載入器字典,依名稱(可 ICustomSignedAssertionProvider.Name 或完全限定型別名稱)。 應用程式可以新增更多資料以處理更多憑證來源。 (繼承來源 DefaultCredentialsLoader) |
| UserAssignedManagedIdentityClientId |
這個預設值可以在憑證描述層級(針對 KeyVault 的憑證)覆蓋。 |