In .xml file where it has login and password for establishing a connection with oracle DB Connection. I need to encrypt the user name and password. How can I Decrypt the file while establishing the connection.
for getting a connection, using
String dsname=""; // (datasource name)
Context ctx=new InitialContext();
DataSource ds=(javax.sql.DataSource)ctx.lookup(dsname);
ds.getConnection();
I can use the above source for getting a connection from reading .xml file
I need to encrypt the username and password before it is placed .
Can i use the same tag in xml File? or Do i need to change?