Package | Description |
---|---|
com.google.api.ads.common.lib.auth |
Modifier and Type | Method and Description |
---|---|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.Builder.forApi(OfflineCredentials.OAuthConfig oAuthConfig)
Specifies which
OfflineCredentials.OAuthConfig should this OfflineCredentials be
used for. |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.from(org.apache.commons.configuration.Configuration config)
Reads properties from the provided
Configuration object
Understands the following properties suffixes: refreshToken clientId clientSecret jsonKeyFilePath For example, the AdWords OAuth2 refresh token can be read from: api.adwords.refreshToken |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.fromFile() |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.fromFile(File path) |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.fromFile(String path) |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.fromFile(URL path) |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withClientSecrets(String clientId,
String clientSecret)
Sets the client ID & secret to create the OAuth2 Credential with.
|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withHttpTransport(com.google.api.client.http.HttpTransport httpTransport)
Sets the
HttpTransport to be used to make the request. |
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withJsonKeyFilePath(String jsonKeyFilePath)
Sets the path to a JSON key file for authenticating with a service account.
|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withRefreshToken(String refreshToken)
Sets the refresh token to create the OAuth2 Credential with.
|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withScopes(List<String> scopes)
Optionally sets scopes for authenticating with a service account.
|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withServiceAccountUser(String serviceAccountUser)
Sets the service account user to impersonate.
|
OfflineCredentials.ForApiBuilder |
OfflineCredentials.ForApiBuilder.withTokenUrlServer(String tokenServerUrl)
Sets the token server URL.
|
Copyright © 2018. All Rights Reserved.