Package | Description |
---|---|
com.google.api.client.googleapis.auth.oauth2 |
Google's additions to OAuth 2.0 authorization as specified in Using OAuth 2.0 to Access Google
APIs.
|
com.google.api.client.googleapis.extensions.appengine.auth.oauth2 |
Google App Engine utilities for OAuth 2.0 for Google APIs.
|
com.google.api.client.googleapis.testing.auth.oauth2 |
Beta Test utilities for the com.google.api.client.googleapis.auth.oauth2 package. |
Modifier and Type | Class and Description |
---|---|
class |
CloudShellCredential
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
|
Modifier and Type | Method and Description |
---|---|
GoogleCredential |
GoogleCredential.Builder.build() |
GoogleCredential |
GoogleCredential.createDelegated(String user)
Beta For service accounts that need to delegate to a specific user, create a copy of the credential with the specified user. |
GoogleCredential |
GoogleCredential.createScoped(Collection<String> scopes)
Beta For credentials that require scopes, creates a copy of the credential with the specified scopes. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream)
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream,
com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory)
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.getApplicationDefault()
Beta Returns the Application Default Credentials. |
static GoogleCredential |
GoogleCredential.getApplicationDefault(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory)
Beta Returns the Application Default Credentials. |
GoogleCredential |
GoogleCredential.setAccessToken(String accessToken) |
GoogleCredential |
GoogleCredential.setExpirationTimeMilliseconds(Long expirationTimeMilliseconds) |
GoogleCredential |
GoogleCredential.setExpiresInSeconds(Long expiresIn) |
GoogleCredential |
GoogleCredential.setFromTokenResponse(com.google.api.client.auth.oauth2.TokenResponse tokenResponse) |
GoogleCredential |
GoogleCredential.setRefreshToken(String refreshToken) |
Modifier and Type | Class and Description |
---|---|
static class |
AppIdentityCredential.AppEngineCredentialWrapper
Beta Credential wrapper for application identity that inherits from GoogleCredential. |
Modifier and Type | Method and Description |
---|---|
GoogleCredential |
AppIdentityCredential.AppEngineCredentialWrapper.createScoped(Collection<String> scopes) |
Modifier and Type | Class and Description |
---|---|
class |
MockGoogleCredential
|
Copyright © 2010–2019 Google. All rights reserved.