-
Bug
-
Resolution: Won't Fix
-
P3
-
9
For security concerns, it is not recommended to use String for passwords. For the same reason JPasswordField.getPassword() returns char[]. However in scenarios where we will invoke the connection dialog of any connection type, we will pre-populate the username and password in the dialog for user to edit. In this use-case, for setting the password in JPasswordField we do not have a constructor or setter API that will accept the password as char[]. Because of this we are forced to create a String object containing the password and set it to JPasswordField which is a wrong practice. So we should get a constructor or setter API in JPasswordField that accepts char[].