| Package | Description |
|---|---|
| com.google.auth.oauth2 |
| Modifier and Type | Class and Description |
|---|---|
class |
CloudShellCredentials
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
|
class |
ComputeEngineCredentials
OAuth2 credentials representing the built-in service account for a Google Compute Engine VM.
|
class |
ServiceAccountCredentials
OAuth2 credentials representing a Service Account for calling Google APIs.
|
class |
UserCredentials
OAuth2 Credentials representing a user's identity and consent.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCredentials |
GoogleCredentials.createScoped(Collection<String> scopes)
If the credentials support scopes, create a copy of the the idenitity with the specified
scopes, otherwise returns the same instance.
|
GoogleCredentials |
ServiceAccountCredentials.createScoped(Collection<String> newScopes)
Clones the service account with the specified scopes.
|
static GoogleCredentials |
GoogleCredentials.fromStream(InputStream credentialsStream)
Returns credentials defined by a JSON file stream.
|
static GoogleCredentials |
GoogleCredentials.fromStream(InputStream credentialsStream,
com.google.api.client.http.HttpTransport transport)
Returns credentials defined by a JSON file stream.
|
static GoogleCredentials |
GoogleCredentials.getApplicationDefault()
Returns the Application Default Credentials.
|
static GoogleCredentials |
GoogleCredentials.getApplicationDefault(com.google.api.client.http.HttpTransport transport)
Returns the Application Default Credentials.
|
Copyright © 2015 Google. All rights reserved.