Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从存储的AccessToken和RefreshToken创建新凭据对象_Java_Google Drive Api_Google Oauth_Google Oauth Java Client - Fatal编程技术网

Java 从存储的AccessToken和RefreshToken创建新凭据对象

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

下面是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
refreshttoken
存储为字符串,那么实际是如何做到这一点的呢