wannadream commented on code in PR #6619:
URL: https://github.com/apache/nifi/pull/6619#discussion_r1270058336


##########
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/src/main/java/org/apache/nifi/elasticsearch/ElasticSearchClientServiceImpl.java:
##########
@@ -275,6 +318,12 @@ private CredentialsProvider addCredentials(final 
CredentialsProvider credentials
         return cp;
     }
 
+    private BasicHeader createApiKeyAuthorizationHeader(String apiKeyId, 
String apiKey) {
+        final String apiKeyCredentials = String.format("%s:%s", apiKeyId, 
apiKey);
+        final String apiKeyAuth = 
Base64.getEncoder().encodeToString((apiKeyCredentials).getBytes(StandardCharsets.UTF_8));

Review Comment:
   Thanks, Chris. Feeling enlightened.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to