語言

PasswordServiceClientCredentialFactory 類別

定義

介面的簡單實作 ServiceClientCredentialsFactory 。

public class PasswordServiceClientCredentialFactory : Microsoft.Bot.Connector.Authentication.ServiceClientCredentialsFactory
type PasswordServiceClientCredentialFactory = class
    inherit ServiceClientCredentialsFactory
Public Class PasswordServiceClientCredentialFactory
Inherits ServiceClientCredentialsFactory
繼承
PasswordServiceClientCredentialFactory

建構函式

名稱 Description
PasswordServiceClientCredentialFactory()

初始化 PasswordServiceClientCredentialFactory 類別的新執行個體。 但卻是空洞的資歷。

PasswordServiceClientCredentialFactory(String, String, String, HttpClient, ILogger)

初始化 PasswordServiceClientCredentialFactory 類別的新執行個體。 並持有提供的證件。

屬性

名稱 Description
AppId

取得或設定這個憑證的應用程式 ID。

Password

取得或設定這個憑證的應用程式密碼。

TenantId

取得建立機器人的 Azure AD 租戶的租戶 ID。

方法

名稱 Description
CreateCredentialsAsync(String, String, String, Boolean, CancellationToken)

用來建立 ServiceClientCredentials 的 Factory 方法。

IsAuthenticationDisabledAsync(CancellationToken)

檢查 Bot 驗證是否已停用。

IsValidAppIdAsync(String, CancellationToken)

驗證應用程式識別碼。

適用於