hi, i want to store username and password in a properties file and get these values in a bean class which is having a method to get the connection. eg [ public class App{ public Connection getConnection(){ String user= //from properties file String password= // from properties file ......
Isn't a properties file just plain text, like an .ini file? If a password were stored as a property, couldn't someone just open the properties file and see all of the passwords?
The assumption is that either this is a client app (in which case all of the client hard disk is fair game) or this is a server app (in which case none of the clents can access it). Maybe the original poster will tell us which one it is.
It's feeding time! Give me the food you were going to give to this tiny ad: