MicrosoftAppCredentials 類別

public class MicrosoftAppCredentials
extends AppCredentials

MicrosoftAppCredentials 驗證實作和快取。

欄位摘要

修飾詞與類型 欄位與描述
static final java.lang.String MICROSOFTAPPID

Microsoft應用程式 Password 的組態屬性。

static final java.lang.String MICROSOFTAPPPASSWORD

Microsoft應用程式標識碼的組態屬性。

建構函式摘要

建構函式 Description
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應用程式 Password 的組態屬性。

MICROSOFTAPPPASSWORD

public static final String MICROSOFTAPPPASSWORD

Microsoft應用程式標識碼的組態屬性。

建構函式詳細資料

MicrosoftAppCredentials

public MicrosoftAppCredentials(String withAppId, String withAppPassword)

初始化 MicrosoftAppCredentials 類別的新實例。

參數:

withAppId - Microsoft應用程式標識碼。
withAppPassword - Microsoft應用程式密碼。

MicrosoftAppCredentials

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

初始化 MicrosoftAppCredentials 類別的新實例。

參數:

withAppId - Microsoft應用程式標識碼。
withAppPassword - Microsoft應用程式密碼。
withChannelAuthTenant - 自選。 oauth 令牌租使用者。

MicrosoftAppCredentials

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

初始化 MicrosoftAppCredentials 類別的新實例。

參數:

withAppId - Microsoft應用程式標識碼。
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 - 應用程式密碼。

適用於