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
Credential
|
createCredential(
Creates a |
abstract
|
getInfo()
Get information about the credential factory's meta data, e.g. key file path, email, etc. |
Public methods
createCredential
public abstract Credential createCredential (scopes)
Creates a Credential
for the given scopes.
Parameters | |
---|---|
scopes |
: a list of API scopes. |
Returns | |
---|---|
Credential |
an oauth2 Credential |
getInfo
public abstractgetInfo ()
Get information about the credential factory's meta data, e.g. key file path, email, etc.
Returns | |
---|---|
|
a ERROR(/Map) with information key to value.
|