public interface

AuthTokenProvider

com.salesforce.android.service.common.http.AuthTokenProvider

Class Overview

Interface used to provide authentication tokens to Snap-ins for making authenticated requests to salesforce api's.

Summary

Public Methods
abstract boolean canRefresh()
Return true if a call to refresh token can generate a new access token.
abstract String getToken()
Returns the authentication token used to access authenticated resources.
abstract String getTokenType()
Returns the type of token.
abstract void refreshToken(ResponseSummary responseSummary)
Called by the Snapins Sdk to request the access token be refreshed.

Public Methods

public abstract boolean canRefresh ()

Return true if a call to refresh token can generate a new access token.

public abstract String getToken ()

Returns the authentication token used to access authenticated resources.

public abstract String getTokenType ()

Returns the type of token. I.E. "Bearer"

public abstract void refreshToken (ResponseSummary responseSummary)

Called by the Snapins Sdk to request the access token be refreshed. This should return once the token update process has completed.

Parameters
responseSummary Summary of the response that necessitated the token refresh.