ICredentialFactory
public
interface
ICredentialFactory
| com.android.tradefed.auth.ICredentialFactory |
An interface for credential factory to create oauth2 Credential. Also provide information
about the credentials.
Summary
Public methods | |
|---|---|
abstract
Credentials
|
createCredential(Collection<String> scopes)
Creates a |
abstract
Map<String, String>
|
getInfo()
Get information about the credential factory's meta data, e.g. key file path, email, etc. |
Public methods
createCredential
public abstract Credentials createCredential (Collection<String> scopes)
Creates a Credential for the given scopes.
| Parameters | |
|---|---|
scopes |
Collection: a list of API scopes. |
| Returns | |
|---|---|
Credentials |
an oauth2 Credential |
| Throws | |
|---|---|
|
java.io.IOException |
IOException |
|
getInfo
public abstract Map<String, String> getInfo ()
Get information about the credential factory's meta data, e.g. key file path, email, etc.
| Returns | |
|---|---|
Map<String, String> |
a Map with information key to value. |