在……里面;在……期间内存凭据(Credential)服务(Service)

A CredentialService that keeps credentials in memory per app, user and credential key, so every session of a user shares them. It keeps each credential as saved, client secret included, and loses them all when the process exits.

构造函数(Constructors)

Link copied to clipboard
constructor()

函数

Link copied to clipboard
open suspend override fun loadCredential(authConfig: AuthConfig, context: Context): AuthCredential?

返回存储在指定位置下的凭据(credential)。 authConfig's AuthConfig.credentialKey for 上下文(context)如果不存在相应的值,则返回 `null`。

Link copied to clipboard
open suspend override fun saveCredential(authConfig: AuthConfig, context: Context)

商店(Stores) authConfig's AuthConfig.exchangedAuthCredential 在其……的范围内;根据其……的规定 AuthConfig.credentialKey for 上下文(context)如果该凭据为空(即其值为 `null`),则后续的操作将会受到影响(或无法正常进行)。 loadCredential 返回值为 `null`。