The doc page linked below shows two ways of passing authentication to your java driver.
The preferred method is to setup authentication in the application.conf using withCloudSecureConnectBundle.
Note: Be sure that the application.conf is setup correctly and available on your application's classpath.
https://docs.datastax.com/en/developer/java-driver-dse/2.3/manual/core/authentication/