Connect to Druid using Zapr java client with username and password

Currently, we are using druid in our application using the Zapr java client but we do not have a username and password in Druid. Now in another environment druid is having username and password. We are trying to move the code to this environment (secured druid), but not getting any example to connect to druid using Zapr Java client using username and password.


This is a companion discussion topic for the original entry at https://stackoverflow.com/questions/72773335/connect-to-druid-using-zapr-java-client-with-username-and-password