ServiceAccountKeyCredentialFactory
public
class
ServiceAccountKeyCredentialFactory
extends Object
implements
ICredentialFactory
| java.lang.Object | |
| ↳ | com.android.tradefed.auth.ServiceAccountKeyCredentialFactory |
A credential factory to create service account key based oauth Credential.
Summary
Public constructors | |
|---|---|
ServiceAccountKeyCredentialFactory()
|
|
Public methods | |
|---|---|
Credentials
|
createCredential(
Creates a |
|
getInfo()
Get information about the credential factory's meta data, e.g. key file path, email, etc. |
Public constructors
ServiceAccountKeyCredentialFactory
public ServiceAccountKeyCredentialFactory ()
Public methods
createCredential
public Credentials createCredential (scopes)
Creates a Credential for the given scopes.
| Parameters | |
|---|---|
scopes |
: a list of API scopes. |
| Returns | |
|---|---|
Credentials |
an oauth2 Credential |
getInfo
publicgetInfo ()
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. |