Okay after reading this I have got the idea that its better to store the password in an array rather than String.
So when getting the password from a request parameter in a servlet's doPost
method, wont that cause a security risk, because the password is retrieved as an actual String ?
Is that the most secure way of getting the password in a servlet ? Or can I use char[] to get my password ?