Secure connection using transport client

Need to connect to a secure elastic search which has https authentication using Transport client in java code. I have userId and password to connect however need example on how can we do it? I am using elasticsearch 5.6.0.

Thanks in advance,
~Kedar

Hi,

We have examples in our documentation. Start there, and if you have any issues and specific questions, we'd be happy to help out