Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Wallet Objects Java クライアント ライブラリを使用して、GoogleCredential オブジェクトをアプリケーションの存続期間全体で再利用できますか?それとも 1 回限りの使用を目的としていますか?
GoogleCredential オブジェクトは、アプリケーションの存続期間中再利用することを目的としています。認証トークンの保存と期限切れのトークンの更新を透過的に処理します。新しいアクセス トークンを明示的に要求するには、次のように更新できます。
credential.refreshToken();
そしてそれを手に入れます
credential.getAccessToken();