Edit in GitHubLog an issue

Proxy Configuration

Basic Proxy#

If the application running the SDK requires a proxy to access the internet, the TargetClient will need to be configured with a proxy configuration as follows.

Copied to your clipboard
1ClientConfig clientConfig = ClientConfig.builder()
2 .client("acmeclient")
3 .organizationId("1234567890@AdobeOrg")
4 .proxyConfig(new ClientProxyConfig(host,port))
5 .build();
6TargetClient targetClient = TargetClient.create(clientConfig);

Authentication#

If a proxy authentication is required, the credentials can be passed as parameters to the ClientProxyConfig constructor, as per the below example. Note that this only works for simple username/password proxy authentication.

Copied to your clipboard
1ClientConfig clientConfig = ClientConfig.builder()
2 .client("acmeclient")
3 .organizationId("1234567890@AdobeOrg")
4 .proxyConfig(new ClientProxyConfig(host,port,username,password))
5 .build();
6TargetClient targetClient = TargetClient.create(clientConfig);
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.