I have developed one desktop application in java in which i have taken user’s credentials. I have developed this application to make it run on any plateform. Now confusion is that i am getting is where to store this credential information. Is a file a proper location for it ? Or should i store it according to the plateform used? like in windows i can use registry to store this information. But what about linux and other plateforms? Is there any standard solution which can help me or use of file is the only way to do it? I initially thought to store it in properties file but any knowledgeable person can browse the content of the jar and can have that property file so i think it is also not appropriate solution. Kindly tell me a better way to store this credentials. Credentials are encrypted.
Share
If credentials are encrypted you might just store them in a file, preferably in the user’s home directory. You might also encrypt the file itself to prevent others from reading it directly.
Using this you have 3 levels of security: