com.salesforce.android.service.common.http.AuthTokenProvider |
Interface used to provide authentication tokens to Snap-ins for making authenticated requests to salesforce api's.
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.
|
Return true if a call to refresh token can generate a new access token.
Returns the authentication token used to access authenticated resources.
Called by the Snapins Sdk to request the access token be refreshed. This should return once the token update process has completed.
responseSummary | Summary of the response that necessitated the token refresh. |
---|