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(String clientId,
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(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(String serviceAccountId)
Sets the service account ID (typically an e-mail address) or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKey(PrivateKey serviceAccountPrivateKey)
Sets the private key to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromP12File(File p12File)
Sets the private key to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromP12File(InputStream p12FileInputStream)
Sets the private key to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromPemFile(File pemFile)
Beta Sets the private key to use with the service account flow or null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyId(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(String serviceAccountProjectId)
Sets the service account Project ID or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountScopes(Collection<String> serviceAccountScopes)
Sets the space-separated OAuth scopes to use with the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountUser(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(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) |
GoogleCredential.Builder |
GoogleCredential.toBuilder()
Deprecated.
Beta Create a builder from this credential. |
Constructor and Description |
---|
GoogleCredential(GoogleCredential.Builder builder)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
static class |
MockGoogleCredential.Builder
Mock for GoogleCredential.Builder.
|
Copyright © 2010–2019 Google. All rights reserved.