PasswordServiceClientCredentialFactory class    
ServiceClientCredentialsFactory 接口的简单实现。
构造函数
属性
| app | 
	此凭据的应用 ID。  | 
| password | 此凭据的应用密码。  | 
| tenant | 
	在其中创建机器人的 Azure AD 租户的租户 ID。  | 
方法
| create | 
	用于创建 ServiceClientCredentials 的工厂方法。  | 
| is | 
	检查是否禁用机器人身份验证。  | 
| is | 
	验证应用 ID。  | 
构造函数详细信息
	PasswordServiceClientCredentialFactory(string, string)
    
初始化 PasswordServiceClientCredentialFactory 类的新实例。
new PasswordServiceClientCredentialFactory(appId: string, password: string)
			参数
- appId
 - 
				
string
 
应用 ID。
- password
 - 
				
string
 
应用密码。
	PasswordServiceClientCredentialFactory(string, string, string)
    
初始化 PasswordServiceClientCredentialFactory 类的新实例。
new PasswordServiceClientCredentialFactory(appId: string, password: string, tenantId: string)
			参数
- appId
 - 
				
string
 
应用 ID。
- password
 - 
				
string
 
应用密码。
- tenantId
 - 
				
string
 
在其中创建机器人的 Azure AD 租户的租户 ID。
属性详细信息
	appId
 
此凭据的应用 ID。
appId: string | null
			属性值
string | null
password
此凭据的应用密码。
password: string | null
			属性值
string | null
	tenantId
 
在其中创建机器人的 Azure AD 租户的租户 ID。
tenantId: string | null
			属性值
string | null
方法详细信息
	createCredentials(string, string, string, boolean)
 
用于创建 ServiceClientCredentials 的工厂方法。
function createCredentials(appId: string, audience: string, loginEndpoint: string, validateAuthority: boolean): Promise<ServiceClientCredentials>
			参数
- appId
 - 
				
string
 
appId。
- audience
 - 
				
string
 
受众。
- loginEndpoint
 - 
				
string
 
登录 URL。
- validateAuthority
 - 
				
boolean
 
要使用的验证颁发机构值。
返回
Promise<ServiceClientCredentials>
表示操作结果的 Promise。
	isAuthenticationDisabled()
  
检查是否禁用机器人身份验证。
function isAuthenticationDisabled(): Promise<boolean>
			返回
Promise<boolean>
具有验证结果的承诺。
	isValidAppId(string)
   
验证应用 ID。
function isValidAppId(appId?: string): Promise<boolean>
			参数
- appId
 - 
				
string
 
要验证的 appId。
返回
Promise<boolean>
具有验证结果的承诺。