私は、Google ドライブ 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
が文字列として格納されている場合、実際にこれを行うにはどうすればよいでしょうか。