ICredentialFactory
public
interface
ICredentialFactory
| com.android.tradefed.auth.ICredentialFactory |
憑證工廠的介面,用於建立 oauth2 Credential。並提供憑證相關資訊。
摘要
公用方法 | |
|---|---|
abstract
Credentials
|
createCredential(Collection<String> scopes)
為指定範圍建立 |
abstract
Map<String, String>
|
getInfo()
取得憑證工廠的中繼資料相關資訊,例如金鑰檔案路徑、電子郵件等。 |
公用方法
createCredential
public abstract Credentials createCredential (Collection<String> scopes)
為指定範圍建立 Credential。
| 參數 | |
|---|---|
scopes |
Collection:API 範圍清單。 |
| 傳回 | |
|---|---|
Credentials |
oauth2 Credential |
| 擲回 | |
|---|---|
|
java.io.IOException |
IOException |
|
getInfo
public abstract Map<String, String> getInfo ()
取得憑證工廠的中繼資料相關資訊,例如金鑰檔案路徑、電子郵件等。
| 傳回 | |
|---|---|
Map<String, String> |
以資訊鍵對應值。Map |