Android SDK Version


public final class AccessTokenManager
Nested Class Summary
Field Summary
Modifier and TypeFieldDescription
private AccessTokencurrentAccessToken
Method Summary
Modifier and TypeMethodDescription
final AccessTokengetCurrentAccessToken()
final UnitsetCurrentAccessToken(AccessToken currentAccessToken)
final BooleanloadCurrentAccessToken() Load access token from accessTokenCache and set to currentAccessToken
final UnitcurrentAccessTokenChanged() Build intent from currentAccessToken and broadcast the intent to CurrentAccessTokenExpirationBroadcastReceiver.
final UnitextendAccessTokenIfNeeded() Refresh currentAccessToken if needed.
final UnitrefreshCurrentAccessToken(AccessToken.AccessTokenRefreshCallback callback) Refresh currentAccessToken.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getCurrentAccessToken

 final AccessTokengetCurrentAccessToken()

setCurrentAccessToken

 final UnitsetCurrentAccessToken(AccessToken currentAccessToken)

loadCurrentAccessToken

 final BooleanloadCurrentAccessToken()
Load access token from accessTokenCache and set to currentAccessToken

currentAccessTokenChanged

 final UnitcurrentAccessTokenChanged()
Build intent from currentAccessToken and broadcast the intent to CurrentAccessTokenExpirationBroadcastReceiver.

extendAccessTokenIfNeeded

 final UnitextendAccessTokenIfNeeded()
Refresh currentAccessToken if needed.

refreshCurrentAccessToken

 final UnitrefreshCurrentAccessToken(AccessToken.AccessTokenRefreshCallback callback)
Refresh currentAccessToken.
Parameters:
callback - to be called after access token be refreshed.