public interface AccessTokenManager
Authorization code is usually used when user tries login via AuthCodeManager, and refresh token is used when a new access token is needed due to expired one.
Modifier and Type | Interface and Description |
---|---|
static class |
AccessTokenManager.Factory
Initializes and provides singleton instance for AccessTokenManager.
|
Modifier and Type | Method and Description |
---|---|
Future<AccessToken> |
refreshAccessToken(String refreshToken,
AccessTokenCallback accessTokenCallback)
Requests access token with refresh token.
|
Future<AccessToken> |
requestAccessTokenByAuthCode(String authCode,
AccessTokenCallback accessTokenCallback)
Requests access token with auth code retrieved from Kakao OAuth server.
|
Future<AccessToken> refreshAccessToken(String refreshToken, AccessTokenCallback accessTokenCallback)
refreshToken
- Refresh token acquired when user previously logged in.accessTokenCallback
- Success/failure callback for access tokenFuture<AccessToken> requestAccessTokenByAuthCode(String authCode, AccessTokenCallback accessTokenCallback)
authCode
- Authorization code previously acquired from Kakao OAuth serveraccessTokenCallback
- Success/failure callback for access token