| 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.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCredential.Builder |
GoogleCredential.Builder.addRefreshListener(CredentialRefreshListener refreshListener) |
GoogleCredential.Builder |
GoogleCredential.Builder.setClientAuthentication(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(Clock clock) |
GoogleCredential.Builder |
GoogleCredential.Builder.setJsonFactory(JsonFactory jsonFactory) |
GoogleCredential.Builder |
GoogleCredential.Builder.setRefreshListeners(List<CredentialRefreshListener> refreshListeners) |
GoogleCredential.Builder |
GoogleCredential.Builder.setRequestInitializer(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 the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyFromP12File(File p12File)
Sets the private key to use with the the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountScopes(Iterable<String> serviceAccountScopes)
Sets the space-separated OAuth scopes to use with the the service account flow or
null for none. |
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountScopes(String... serviceAccountScopes)
Sets the space-separated OAuth scopes to use with the 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(GenericUrl tokenServerUrl) |
GoogleCredential.Builder |
GoogleCredential.Builder.setTransport(HttpTransport transport) |
Copyright © 2010-2012 Google. All Rights Reserved.