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(Collection<String> scopes)

Creates a Credential for the given scopes.

Map<String, String> 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 (Collection<String> scopes)

Creates a Credential for the given scopes.

Parameters
scopes Collection: a list of API scopes.

Returns
Credentials an oauth2 Credential

Throws
IOException

getInfo

public 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.