MicrosoftAppCredentials 类

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)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant)

初始化 MicrosoftAppCredentials 类的新实例。

MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)

初始化 MicrosoftAppCredentials 类的新实例。

方法摘要

修饰符和类型 方法和描述
protected Authenticator buildAuthenticator()

返回凭据验证器。

static MicrosoftAppCredentials empty()

返回一组空的凭据。

java.lang.String getAppPassword()

获取此凭据的应用密码。

void setAppPassword(String withAppPassword)

设置此凭据的应用密码。

方法继承自 AppCredentials

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

字段详细信息

MICROSOFTAPPID

public static final String MICROSOFTAPPID

Microsoft应用密码的配置属性。

MICROSOFTAPPPASSWORD

public static final String MICROSOFTAPPPASSWORD

Microsoft应用 ID 的配置属性。

构造函数详细信息

MicrosoftAppCredentials

public MicrosoftAppCredentials(String withAppId, String withAppPassword)

初始化 MicrosoftAppCredentials 类的新实例。

参数:

withAppId - Microsoft应用 ID。
withAppPassword - Microsoft应用密码。

MicrosoftAppCredentials

public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant)

初始化 MicrosoftAppCredentials 类的新实例。

参数:

withAppId - Microsoft应用 ID。
withAppPassword - Microsoft应用密码。
withChannelAuthTenant - 自选。 oauth 令牌租户。

MicrosoftAppCredentials

public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)

初始化 MicrosoftAppCredentials 类的新实例。

参数:

withAppId - Microsoft应用 ID。
withAppPassword - Microsoft应用密码。
withChannelAuthTenant - 自选。 oauth 令牌租户。
withOAuthScope - 令牌的范围。

方法详细信息

buildAuthenticator

protected Authenticator buildAuthenticator()

返回凭据验证器。

替代:

MicrosoftAppCredentials.buildAuthenticator()

返回:

CredentialsAuthenticator。

引发:

java.net.MalformedURLException - 无效的终结点 URL。

empty

public static MicrosoftAppCredentials empty()

返回一组空的凭据。

返回:

一组空的 MicrosoftAppCredentials。

getAppPassword

public String getAppPassword()

获取此凭据的应用密码。

返回:

应用密码。

setAppPassword

public void setAppPassword(String withAppPassword)

设置此凭据的应用密码。

参数:

withAppPassword - 应用密码。

适用于