public class ComputeEngineCredentials extends GoogleCredentials
Fetches access tokens from the Google Compute Engine metadata server.
| Constructor and Description |
|---|
ComputeEngineCredentials()
Constructor with minimum information and default behavior.
|
ComputeEngineCredentials(com.google.api.client.http.HttpTransport transport)
Constructor with overridden transport.
|
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
refreshAccessToken()
Refresh the access token by getting it from the GCE metadata server
|
createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefaultgetAuthenticationType, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, refreshgetRequestMetadatapublic ComputeEngineCredentials()
public ComputeEngineCredentials(com.google.api.client.http.HttpTransport transport)
transport - HTTP object used to get access tokens.public AccessToken refreshAccessToken() throws IOException
refreshAccessToken in class OAuth2CredentialsIOExceptionCopyright © 2015 Google. All rights reserved.