How to configure encryption for the Oracle Database Connection Pool in Apache Tomcat 8 -


i have apache tomcat 8 configured oracle database connection pool (using context.xml file). have web app running on server. need add encryption connections take oracle database connection pool.

how add properties oracle database connection pool configuration in tomcat?

my context.xml file:

<context>   <resource maxwait="-1"              maxidle="10"              maxactive="20"              password="password "              username="username"              url="jdbc:oracle:thin:@(description =                  (address_list =                  (address =                   (protocol = tcp)                  (host = host.ttt.intranet)                  (port = 2000))                  )                  (connect_data =                  (service_name = test)                  )                  )"              driverclassname="oracle.jdbc.oracledriver"                      type="javax.sql.datasource"              auth="container"              name="jdbc/ora"/> </context> 

for standalone applications add properties parameters method java.sql.drivermanager.getconnection(string url, properties info)

properties info= new properties(); info.setproperty(oracle.jdbc.oracleconnection.connection_property_thin_net_encryption_level, oracle.net.ano.anoservices.ano_required); info.setproperty(oracle.jdbc.oracleconnection.connection_property_thin_net_encryption_types, "( "+ oracle.net.ano.anoservices.encryption_aes256 + ","+ oracle.net.ano.anoservices.encryption_aes192 + ","+  oracle.net.ano.anoservices.encryption_aes128 + ")"); 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -