|
captureExternalConnections ユーティリティを介してサブミットされた接続情報
|
CCD ユーティリティを介してサブミットされたカスタマイズコード
|
|---|---|
|
"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 apiUr1 = customIntegrationHelper.getNamedEndpointURL("get_material_number"); Map<String, String> map = customIntegrationHelper.getSecretsMap(); String bearerToken = map.get("bearer_token"); SSLContext sslContext = customIntegrationHelper.getInitializedSSLContext(); . . . } |
|
|
bearer_token は予約済みのキーワードではなく、サンプル実装でのベアラートークン認証に対する特定の処理はありません。基本的には、関連する外部エンドポイントのリクエストを構築する際にカスタマイズコードが識別して利用できるその他の文字列を使用できます。
|