我正在关注 Google Drive SDK 文档的实现服务器端身份验证部分,如果留给读者作为练习,则在代码中呈现以下部分:
static Credential getStoredCredentials(String userId) {
// TODO: Implement this method to work with your database. Instantiate a new
// Credential instance with stored accessToken and refreshToken.
throw new UnsupportedOperationException();
}
AuthorizationToken
鉴于我们将和RefreshTokens
存储为字符串,实际上如何做到这一点?