Java Authenticate using xpack

I have POC from old employee for using elasticsearch feature. i am trying to implement it but i hit a problem that POC have authentication code. We have xpack now . Please guide me what i have to add to POC JAVA code to test it with xpack security also.

Hi there,

See https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.6/java-rest-high-getting-started-initialization.html to get you started with the High Level Rest Client and https://www.elastic.co/guide/en/elasticsearch/client/java-rest/7.6/_basic_authentication.html for examples on how to use basic authentication

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.