CertificateServiceClientCredentialsFactory 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CertificateServiceClientCredentialsFactory 类的新实例。
public CertificateServiceClientCredentialsFactory (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string appId, string tenantId = default, System.Net.Http.HttpClient httpClient = default, Microsoft.Extensions.Logging.ILogger logger = default, bool sendX5c = false);
new Microsoft.Bot.Connector.Authentication.CertificateServiceClientCredentialsFactory : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger * bool -> Microsoft.Bot.Connector.Authentication.CertificateServiceClientCredentialsFactory
Public Sub New (certificate As X509Certificate2, appId As String, Optional tenantId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional logger As ILogger = Nothing, Optional sendX5c As Boolean = false)
参数
- certificate
- X509Certificate2
用于身份验证的证书。
- appId
- String
Microsoft与证书相关的应用程序 ID。
- tenantId
- String
oauth 令牌租户。
- httpClient
- HttpClient
要使用的自定义 httpClient。
- logger
- ILogger
要使用的记录器实例。
- sendX5c
- Boolean
如果 CertificateAppCredentials 应在请求中发送证书链,则为标志。 它使用证书使用者名称(而不是 CNAME)和颁发者(而不是指纹)通过 AAD 启用身份验证。