java client

i use elasticsearch 6.4.2, search guard 6.4.2 Community version.

I am trying to create a client that connects to elasticsearch using search guard security.

I am replacing the part written in the high level client api, which is a different type and confusing.

Can you show me an example of connecting?

I tried various blog reporting reports below, but I failed.