| Package | Description |
|---|---|
| com.google.auth.oauth2 |
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
ComputeEngineCredentials.refreshAccessToken()
Refresh the access token by getting it from the GCE metadata server
|
AccessToken |
ServiceAccountCredentials.refreshAccessToken()
Refreshes the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
|
AccessToken |
CloudShellCredentials.refreshAccessToken() |
AccessToken |
UserCredentials.refreshAccessToken()
Refreshes the OAuth2 access token by getting a new access token from the refresh token
|
abstract AccessToken |
OAuth2Credentials.refreshAccessToken()
Abstract method to refresh the access token according to the specific type of credentials.
|
| Constructor and Description |
|---|
GoogleCredentials(AccessToken accessToken)
Constructor with explicit access token.
|
OAuth2Credentials(AccessToken accessToken)
Constructor with explicit access token.
|
UserCredentials(String clientId,
String clientSecret,
String refreshToken,
AccessToken accessToken)
Constructor to allow both refresh token and initial access token for 3LO scenarios.
|
UserCredentials(String clientId,
String clientSecret,
String refreshToken,
AccessToken accessToken,
com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.GenericUrl tokenServerUrl)
Constructor with all parameters allowing custom transport and server URL.
|
Copyright © 2015 Google. All rights reserved.