| 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.testing.auth.oauth2 |
Beta Test utilities for the com.google.api.client.googleapis.auth.oauth2 package. |
| Modifier and Type | Method and Description |
|---|---|
GoogleCredential.Builder |
GoogleCredential.Builder.addRefreshListener(com.google.api.client.auth.oauth2.CredentialRefreshListener refreshListener) |
GoogleCredential.Builder |
GoogleCredential.Builder.setClientAuthentication(com.google.api.client.http.HttpExecuteInterceptor clientAuthentication) |
GoogleCredential.Builder |
GoogleCredential.Builder.setClientSecrets(GoogleClientSecrets clientSecrets)
Sets the client secrets.
|
GoogleCredential.Builder |
GoogleCredential.Builder.setClientSecrets(java.lang.String clientId,
java.lang.String clientSecret)
Sets the client identifier and secret.
|
GoogleCredential.Builder |
GoogleCredential.Builder.setClock(com.google.api.client.util.Clock clock) |
GoogleCredential.Builder |
GoogleCredential.Builder.setJsonFactory(com.google.api.client.json.JsonFactory jsonFactory) |
GoogleCredential.Builder |
GoogleCredential.Builder.setRefreshListeners(java.util.Collection<com.google.api.client.auth.oauth2.CredentialRefreshListener> refreshListeners) |
GoogleCredential.Builder |
GoogleCredential.Builder.setRequestInitializer(com.google.api.client.http.HttpRequestInitializer requestInitializer) |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountId(java.lang.String serviceAccountId)
Sets the service account ID (typically an e-mail address) or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKey(java.security.PrivateKey serviceAccountPrivateKey)
Sets the private key to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromP12File(java.io.File p12File)
Sets the private key to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromPemFile(java.io.File pemFile)
Beta Sets the private key to use with the service account flow or null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyId(java.lang.String serviceAccountPrivateKeyId)
Beta Sets the id of the private key to use with the service account flow or null for
none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountProjectId(java.lang.String serviceAccountProjectId)
Sets the service account Project ID or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountScopes(java.util.Collection<java.lang.String> serviceAccountScopes)
Sets the space-separated OAuth scopes to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountUser(java.lang.String serviceAccountUser)
Sets the email address of the user the application is trying to impersonate in the service
account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setTokenServerEncodedUrl(java.lang.String tokenServerEncodedUrl) |
GoogleCredential.Builder |
GoogleCredential.Builder.setTokenServerUrl(com.google.api.client.http.GenericUrl tokenServerUrl) |
GoogleCredential.Builder |
GoogleCredential.Builder.setTransport(com.google.api.client.http.HttpTransport transport) |
| Constructor and Description |
|---|
GoogleCredential(GoogleCredential.Builder builder) |
| Modifier and Type | Class and Description |
|---|---|
static class |
MockGoogleCredential.Builder
Mock for GoogleCredential.Builder.
|
Copyright © 2010-2019 Google. All Rights Reserved.