I don't want to put hard coded password and user name on connecting to splunk from java sdk. How to encrypt and decrypt the password and user name?
Hello Brawal0, this is not much Splunk question as far I understood... but more a Java development thing. Have a look on this topic, it might give you some ideas how to securely store a password in a properties file:
http://stackoverflow.com/questions/1132567/encrypt-password-in-configuration-files
Cheers