Connection information submitted via captureExternalConnections utility
|
Customization code submitted via CCD utility
|
---|---|
"material_api": {
"baseurl": "replace with your base-url", "url_fragments": { "get_material_number": "/api/material", "get_material_data_stream": "/api/materialData/stream" }, "secrets": { "client_cert": "replace with path to clientcertchain", "bearer_token": "Bearer replace with your bearer token" }, "server_cert": "replace with path to clientcertchain" } |
CustomIntegrationHelper customIntegrationHelper
= new CustomIntegrationHelper("material_api"); public String getPartNumber() throws Exception { URL apiUrl = customIntegrationHelper.getNamedEndpointURL("get_material_number"); Map<String, String> map = customIntegrationHelper.getSecretsMap(); String bearerToken = map.get("bearer_token"); SSLContext sslContext = customIntegrationHelper.getInitializedSSLContext(); . . . } |
|
The bearer_token is not a reserved keyword, and there is no specific handling for bearer token authentication in the sample implementation. It could essentially be any other string that the customization code can identify and utilize while constructing a request for the relevant external endpoint.
|