TokenManager

class TokenManager(appCache: PersistentKVStore = SharedPrefsWrapper( KakaoSdk.applicationContextInfo.sharedPreferences ), encryptor: Cipher = AESCipher()) : TokenManageable

토큰 저장소, 기기 고유값으로 암호화된 토큰을 SharedPreferences에 저장
Token manager that encrypts tokens with the device's unique value and saves in the SharedPreferences

See also

Constructors

Link copied to clipboard
constructor(appCache: PersistentKVStore = SharedPrefsWrapper( KakaoSdk.applicationContextInfo.sharedPreferences ), encryptor: Cipher = AESCipher())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun clear()

저장된 토큰 삭제
Deletes saved tokens

Link copied to clipboard
open override fun getToken(): OAuthToken?

저장된 토큰 반환
Returns saved tokens

Link copied to clipboard
open override fun setToken(token: OAuthToken)

토큰을 SharedPreferences에 저장
Saves tokens in the SharedPreferences