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 |
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(Collection<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 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)
|
GoogleCredential.Builder |
GoogleCredential.Builder.setServiceAccountPrivateKeyId(String serviceAccountPrivateKeyId)
|
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(GenericUrl tokenServerUrl) |
GoogleCredential.Builder |
GoogleCredential.Builder.setTransport(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–2020 Google. All rights reserved.