Re: mySQL JDBC connectiion using wallet
Posted by: Todd Farmer
Date: May 14, 2015 11:40AM

Hi Ajay,

I'm sorry if I was unclear - Connector/Java does not have an option to read from .mylogin.cnf file. COnnector/Java supports connections which take a java.util.Properties argument, which can be generated from a file:

https://docs.oracle.com/javase/tutorial/essential/environment/properties.html

There are third-party tools which allow these properties files to be encrypted:

http://www.jasypt.org/encrypting-configuration.html

Like the .mylogin.cnf file, you could simply apply OS file-system protection to the .properties file.

Hope that helps!

--
Todd Farmer
MySQL @ Oracle
http://www.oracle.com/mysql/

Options: ReplyQuote


Subject
Written By
Posted
Re: mySQL JDBC connectiion using wallet
May 14, 2015 11:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.