问题描述
我正在尝试在java中编写连接类以使用jdbc驱动程序连接到oracle数据库,但我想保护用于连接到oracle数据库的jdbcurl / username / password等参数。
我必须使用TLS证书概念连接到java中的oracle数据库。我试着寻找一个有效的例子,却找不到一个。
任何人都可以给我一个如何实现它的想法,最近我还要添加连接池概念它。
提前致谢
请参阅白皮书链接详细信息如下所示。
这个答案假定你已经在oracle服务器上正确配置了TLS。如果没有,请参阅白皮书。
本白皮书还包括更高级的选项,如身份验证,密码选择等。
I am trying to write a connection class in java to connect to oracle database using jdbc drivers but I want to secure the parameters like jdbcurl/username/password which is used to connect to the oracle database.
I have to use TLS certificate concept to connect to the oracle database in java. I tried looking for a working example but couldn't find one.
Can anyone give me an idea how to implement that and late i have to add connection pooling concept also to it.
Thanks in advance
Refer to the whitepaper linked below for details.
This answer assumes that you have already configured TLS correctly on the oracle server. If not, refer to the SSL With Oracle JDBC Thin Driver whitepaper.
This whitepaper also includes more advanced options like authentication, selection of cipher, etc.
这篇关于JDBC使用TLS证书连接到Oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!