CertificateAppCredentials 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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与证书相关的应用程序 ID。
- channelAuthTenant
- String
自选。 oauth 令牌租户。
- customHttpClient
- HttpClient
获取令牌时要使用的可选 HttpClient。
适用于
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与证书相关的应用程序 ID。
- channelAuthTenant
- String
自选。 oauth 令牌租户。
- customHttpClient
- HttpClient
获取令牌时要使用的可选 HttpClient。
适用于
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与证书相关的应用程序 ID。
- channelAuthTenant
- String
自选。 oauth 令牌租户。
- oAuthScope
- String
自选。 令牌的范围。
- sendX5c
- Boolean
自选。 如果为 true,则此参数使应用程序开发人员能够在 Azure AD 中轻松实现证书滚动更新:将此参数设置为 true 会将公共证书连同令牌请求一起发送到 Azure AD,以便 Azure AD 可以使用它根据受信任的颁发者策略验证使用者名称。
- customHttpClient
- HttpClient
获取令牌时要使用的可选 HttpClient。