I am trying to setup an oracle datasource to connect securely from a java Swing app to an Oracle DB using the UCP driver and have a couple of questions:
Referring to the datasource below, is it correct and is there a way to tell if the connection is actually encrypted? Is there something I can turn on in logging to see the connection properties?
Here is my datasource, it doesn't throw any errors during startup, but I would expect it to since we haven't turned on anything in the DB yet.
<bean id="dataSource" class="oracle.ucp.jdbc.PoolDataSourceFactory"
factory-method="getPoolDataSource">
<property name="user" value="${db.user}" />
<property name="password" value="${db.pw}" />
<property name="URL" value="${db.url}" />
<property name="connectionFactoryClassName"
value="oracle.jdbc.pool.OracleDataSource" /> <!-- examples use oracle.jdbc.pool.OracleDataSource -->
<property name="ConnectionPoolName" value="RTF_POOL" />
<property name="validateConnectionOnBorrow" value="true" />
<property name="SQLForValidateConnection" value="select 1 from dual" />
<property name="minPoolSize" value="5" />
<property name="maxPoolSize" value="30" />
<property name="inactiveConnectionTimeout" value="30" />
<property name="maxIdleTime" value="0" />
<property name="abandonedConnectionTimeout" value="30" />
<property name="connectionWaitTimeout" value="30" />
<property name="maxStatements" value="50" />
<property name="connectionProperties">
<value>
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCR YPTION_LEVEL: REQUIRED
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCR YPTION_TYPES: ( 3DES168 )
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHEC KSUM_LEVEL: REQUESTED
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHEC KSUM_TYPES: ( MD5 )
OracleConnection.CONNECTION_PROPERTY_THIN_NET_AUTH ENTICATION_SERVICES: SSL
</value>
</property>
</bean>
Any help would be appreciated.
Referring to the datasource below, is it correct and is there a way to tell if the connection is actually encrypted? Is there something I can turn on in logging to see the connection properties?
Here is my datasource, it doesn't throw any errors during startup, but I would expect it to since we haven't turned on anything in the DB yet.
<bean id="dataSource" class="oracle.ucp.jdbc.PoolDataSourceFactory"
factory-method="getPoolDataSource">
<property name="user" value="${db.user}" />
<property name="password" value="${db.pw}" />
<property name="URL" value="${db.url}" />
<property name="connectionFactoryClassName"
value="oracle.jdbc.pool.OracleDataSource" /> <!-- examples use oracle.jdbc.pool.OracleDataSource -->
<property name="ConnectionPoolName" value="RTF_POOL" />
<property name="validateConnectionOnBorrow" value="true" />
<property name="SQLForValidateConnection" value="select 1 from dual" />
<property name="minPoolSize" value="5" />
<property name="maxPoolSize" value="30" />
<property name="inactiveConnectionTimeout" value="30" />
<property name="maxIdleTime" value="0" />
<property name="abandonedConnectionTimeout" value="30" />
<property name="connectionWaitTimeout" value="30" />
<property name="maxStatements" value="50" />
<property name="connectionProperties">
<value>
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCR YPTION_LEVEL: REQUIRED
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCR YPTION_TYPES: ( 3DES168 )
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHEC KSUM_LEVEL: REQUESTED
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHEC KSUM_TYPES: ( MD5 )
OracleConnection.CONNECTION_PROPERTY_THIN_NET_AUTH ENTICATION_SERVICES: SSL
</value>
</property>
</bean>
Any help would be appreciated.