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

Creates a Credential for the given scopes.

abstract getInfo()

Get information about the credential factory's meta data, e.g. key file path, email, etc.

Public methods

createCredential

public abstract Credentials createCredential ( scopes)

Creates a Credential for the given scopes.

Parameters
scopes : a list of API scopes.

Returns
Credentials an oauth2 Credential

Throws
IOException

getInfo

public abstract  getInfo ()

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.