Token Manager
class TokenManager(appCache: PersistentKVStore, encryptor: Cipher) : TokenManageable
Content copied to clipboard
Kakao SDK에서 기본 제공하는 토큰 저장소 구현체.
기기 고유값을 이용해 토큰을 암호화하고 SharedPreferences에 저장함.
// 저장된 토큰 가져오기
val token = TokenManager.instance.getToken()
Content copied to clipboard
See also
Constructors
Link copied to clipboard
fun TokenManager(appCache: PersistentKVStore = SharedPrefsWrapper(
KakaoSdk.applicationContextInfo.sharedPreferences
), encryptor: Cipher = AESCipher())
Content copied to clipboard
Types
Functions
Link copied to clipboard
SharedPreferences에 저장되어 있는 OAuthToken 객체를 삭제.
Link copied to clipboard
SharedPreferences에 저장되어 있는 OAuthToken 반환.
Link copied to clipboard
토큰을 SharedPreferences에 저장.