MicrosoftAppCredentials 类
- java.
lang. Object - com.
microsoft. bot. connector. authentication. AppCredentials - com.
microsoft. bot. connector. authentication. MicrosoftAppCredentials
- com.
- com.
public class MicrosoftAppCredentials
extends AppCredentials
MicrosoftAppCredentials 身份验证实现和缓存。
字段摘要
| 修饰符和类型 | 字段和描述 |
|---|---|
| static final java.lang.String |
MICROSOFTAPPID
Microsoft应用密码的配置属性。 |
| static final java.lang.String |
MICROSOFTAPPPASSWORD
Microsoft应用 ID 的配置属性。 |
构造函数摘要
| 构造函数 | 说明 |
|---|---|
| MicrosoftAppCredentials(String withAppId, String withAppPassword) |
初始化 Microsoft |
| MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant) |
初始化 Microsoft |
| MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope) |
初始化 Microsoft |
方法摘要
| 修饰符和类型 | 方法和描述 |
|---|---|
| protected Authenticator |
buildAuthenticator()
返回凭据验证器。 |
|
static
Microsoft |
empty()
返回一组空的凭据。 |
| java.lang.String |
getAppPassword()
获取此凭据的应用密码。 |
| void |
setAppPassword(String withAppPassword)
设置此凭据的应用密码。 |
方法继承自 AppCredentials
方法继承自 java.lang.Object
字段详细信息
MICROSOFTAPPID
public static final String MICROSOFTAPPID
Microsoft应用密码的配置属性。
MICROSOFTAPPPASSWORD
public static final String MICROSOFTAPPPASSWORD
Microsoft应用 ID 的配置属性。
构造函数详细信息
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword)
初始化 MicrosoftAppCredentials 类的新实例。
参数:
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant)
初始化 MicrosoftAppCredentials 类的新实例。
参数:
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)
初始化 MicrosoftAppCredentials 类的新实例。
参数:
方法详细信息
buildAuthenticator
protected Authenticator buildAuthenticator()
返回凭据验证器。
替代:
MicrosoftAppCredentials.buildAuthenticator()返回:
引发:
empty
public static MicrosoftAppCredentials empty()
返回一组空的凭据。
返回:
getAppPassword
public String getAppPassword()
获取此凭据的应用密码。
返回:
setAppPassword
public void setAppPassword(String withAppPassword)
设置此凭据的应用密码。
参数: