Java 从存储的AccessToken和RefreshToken创建新凭据对象
下面是Google Drive SDK文档的一部分,在代码中,以下部分作为读者的练习:Java 从存储的AccessToken和RefreshToken创建新凭据对象,java,google-drive-api,google-oauth,google-oauth-java-client,Java,Google Drive Api,Google Oauth,Google Oauth Java Client,下面是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. th
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
和refreshttoken
存储为字符串,那么实际是如何做到这一点的呢