CertificateAppCredentials 建構函式

定義

多載

CertificateAppCredentials(CertificateAppCredentialsOptions)

初始化 CertificateAppCredentials 類別的新實例。

CertificateAppCredentials(X509Certificate2, String, String, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

CertificateAppCredentials(X509Certificate2, Boolean, String, String, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

CertificateAppCredentials(X509Certificate2, String, String, String, Boolean, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

CertificateAppCredentials(CertificateAppCredentialsOptions)

初始化 CertificateAppCredentials 類別的新實例。

public CertificateAppCredentials (Microsoft.Bot.Connector.Authentication.CertificateAppCredentialsOptions options);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : Microsoft.Bot.Connector.Authentication.CertificateAppCredentialsOptions -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (options As CertificateAppCredentialsOptions)

參數

options
CertificateAppCredentialsOptions

此 CertificateAppCredentials 的選項。

適用於

CertificateAppCredentials(X509Certificate2, String, String, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string appId, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As X509Certificate2, appId As String, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

參數

clientCertificate
X509Certificate2

要呈現以進行驗證的客戶端憑證。

appId
String

Microsoft與憑證相關的應用程式標識碼。

channelAuthTenant
String

自選。 oauth 令牌租使用者。

customHttpClient
HttpClient

取得令牌時要使用的選擇性 HttpClient

logger
ILogger

選擇性 ILogger 在取得和管理認證時收集遙測數據。

適用於

CertificateAppCredentials(X509Certificate2, Boolean, String, String, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, bool sendX5c, string appId, string channelAuthTenant = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * bool * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As X509Certificate2, sendX5c As Boolean, appId As String, Optional channelAuthTenant As String = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

參數

clientCertificate
X509Certificate2

要呈現以進行驗證的客戶端憑證。

sendX5c
Boolean

如果為 true,則此參數可讓應用程式開發人員在 Azure AD 中達成簡單的憑證變換:將此參數設定為 true 會將公用憑證連同令牌要求一起傳送至 Azure AD,讓 Azure AD 可以根據受信任的簽發者原則來驗證主體名稱。

appId
String

Microsoft與憑證相關的應用程式標識碼。

channelAuthTenant
String

自選。 oauth 令牌租使用者。

customHttpClient
HttpClient

取得令牌時要使用的選擇性 HttpClient

logger
ILogger

選擇性 ILogger 在取得和管理認證時收集遙測數據。

適用於

CertificateAppCredentials(X509Certificate2, String, String, String, Boolean, HttpClient, ILogger)

初始化 CertificateAppCredentials 類別的新實例。

public CertificateAppCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, string appId, string channelAuthTenant = default, string oAuthScope = default, bool sendX5c = false, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Connector.Authentication.CertificateAppCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * string * bool * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Connector.Authentication.CertificateAppCredentials
Public Sub New (clientCertificate As X509Certificate2, appId As String, Optional channelAuthTenant As String = Nothing, Optional oAuthScope As String = Nothing, Optional sendX5c As Boolean = false, Optional customHttpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing)

參數

clientCertificate
X509Certificate2

要呈現以進行驗證的客戶端憑證。

appId
String

Microsoft與憑證相關的應用程式標識碼。

channelAuthTenant
String

自選。 oauth 令牌租使用者。

oAuthScope
String

自選。 令牌的範圍。

sendX5c
Boolean

自選。 如果為 true,則此參數可讓應用程式開發人員在 Azure AD 中達成簡單的憑證變換:將此參數設定為 true 會將公用憑證連同令牌要求一起傳送至 Azure AD,讓 Azure AD 可以根據受信任的簽發者原則來驗證主體名稱。

customHttpClient
HttpClient

取得令牌時要使用的選擇性 HttpClient

logger
ILogger

選擇性 ILogger 在取得和管理認證時收集遙測數據。

適用於