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 |
Modifier and Type | Class and Description |
---|---|
class |
CloudShellCredential
Deprecated.
Please use
google-auth-library for handling authentication and authorization from Cloud Shell.
|
Modifier and Type | Method and Description |
---|---|
GoogleCredential |
GoogleCredential.Builder.build() |
GoogleCredential |
GoogleCredential.createDelegated(String user)
Deprecated.
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)
Deprecated.
Beta For credentials that require scopes, creates a copy of the credential with the specified scopes. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream)
Deprecated.
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.fromStream(InputStream credentialStream,
HttpTransport transport,
JsonFactory jsonFactory)
Deprecated.
Beta Return a credential defined by a Json file. |
static GoogleCredential |
GoogleCredential.getApplicationDefault()
Deprecated.
Beta Returns the Application Default Credentials. |
static GoogleCredential |
GoogleCredential.getApplicationDefault(HttpTransport transport,
JsonFactory jsonFactory)
Deprecated.
Beta Returns the Application Default Credentials. |
GoogleCredential |
GoogleCredential.setAccessToken(String accessToken)
Deprecated.
|
GoogleCredential |
GoogleCredential.setExpirationTimeMilliseconds(Long expirationTimeMilliseconds)
Deprecated.
|
GoogleCredential |
GoogleCredential.setExpiresInSeconds(Long expiresIn)
Deprecated.
|
GoogleCredential |
GoogleCredential.setFromTokenResponse(TokenResponse tokenResponse)
Deprecated.
|
GoogleCredential |
GoogleCredential.setRefreshToken(String refreshToken)
Deprecated.
|
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–2021 Google. All rights reserved.