AliyunpanCredentials

abstract class AliyunpanCredentials(val context: Context, val appId: String) : AliyunpanTokenServer

Constructors

Link copied to clipboard
constructor(context: Context, appId: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun clearToken()
Link copied to clipboard
abstract fun getAccessToken(): String?
Link copied to clipboard
open fun getOAuthQRCodeRequest(scopes: List<String>, onResult: Consumer<JSONObject?>)

Get oauth qrcode request

Link copied to clipboard
abstract fun getOAuthRequest(scope: String): Map<String, String>
Link copied to clipboard
open fun getToken(authCode: String, onResult: Consumer<JSONObject?>)

Get token

Link copied to clipboard
open fun getTokenRequest(authCode: String): JSONObject?

Get token request

Link copied to clipboard
abstract fun preCheckTokenValid(): Boolean
Link copied to clipboard
abstract fun updateAccessToken(jsonObject: JSONObject)