...
Note that the one- and two-argument java.sql.DriverManager.getConnection()
methods can also be used incorrectly.
Code Block | ||
---|---|---|
| ||
% strings a.out
...
AUATL
[]A\A]A^A_
correct code
Authentication error
Authentication successful
...
%
|
Compliant Solution
This compliant solution reads the user name and password from a configuration file located in a secure directory:
...