To connect to any of the Impossible FX service with the FX SDK for Java, you must provide API key and secret credentials. The SDK uses provider chains to look for credentials in a number of different places, including system/user environment variables and local configuration files.
This topic provides basic information about setting up your FX credentials for local application development using the FX SDK for Java.
Setting your credentials for use by the FX SDK for Java can be done in a number of ways, but here are the recommended approaches:
export FX_APIKEY=your API Key export FX_APISECRET=your_secret_access_keyTo set these variables on Windows:
set FX_APIKEY=your_access_key_id set FX_APISECRET=your_secret_access_key
java -Dfx.apikey=your api key -Dfx.apisecret=your api secret ...
FXRenderClient client = FXRenderClient.builder() .withProvider(new StaticCredentialsProvider("your api key", "your api secret")) .withRegion("eu-central-1") .build();
Terms of Use | © 2017, Impossible Software, or its affiliates.