jeudi 25 juin 2015

How to keep java JDBC connection to oracle secured

I am building a web application with java and using JDBC driver

please tell me if i wrong, i dont think using this block of code is secured how should i make it secured without using "HARD CODED" password

Class.forName("org.postgresql.Driver");
Connection connection = null;
connection = DriverManager.getConnection(
    "jdbc:oracle:thin:@localhost:1521:mkyong","username","password");
connection.close();

taken from: http://ift.tt/1KgeFzX

Aucun commentaire:

Enregistrer un commentaire