Skip to content

Commit ee545c3

Browse files
committed
Allow Oracle Net Encryption and Checksum Properties
allows the following properties to be passed to the JDBC connection - oracle.net.encryption_client - oracle.net.encryption_types_client - oracle.net.crypto_checksum_client - oracle.net.crypto_checksum_types_client Signed-off-by: Ronny Perinke <[email protected]>
1 parent bc3e39d commit ee545c3

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ supported by Oracle R2DBC:
323323
- Setting this option to "false" may resolve "ORA-01882: timezone region not
324324
found". The ORA-01882 error happens when Oracle Database doesn't recognize
325325
the name returned by `java.util.TimeZone.getDefault().getId()`.
326+
- [oracle.net.encryption_client](https://docs.oracle.com/en/database/oracle/oracle-database/21/jajdb/oracle/jdbc/OracleConnection.html#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL)
327+
- [oracle.net.encryption_types_client](https://docs.oracle.com/en/database/oracle/oracle-database/21/jajdb/oracle/jdbc/OracleConnection.html#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES)
328+
- [oracle.net.crypto_checksum_client](https://docs.oracle.com/en/database/oracle/oracle-database/21/jajdb/oracle/jdbc/OracleConnection.html#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL)
329+
- [oracle.net.crypto_checksum_types_client](https://docs.oracle.com/en/database/oracle/oracle-database/21/jajdb/oracle/jdbc/OracleConnection.html#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES)
326330

327331
### Thread Safety and Parallel Execution
328332
Oracle R2DBC's `ConnectionFactory` and `ConnectionFactoryProvider` are the only

src/main/java/oracle/r2dbc/OracleR2dbcOptions.java

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,30 @@ private OracleR2dbcOptions() {}
344344
*/
345345
public static final Option<CharSequence> LDAP_CONTEXT_PROTOCOL;
346346

347+
/**
348+
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
349+
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL}
350+
*/
351+
public static final Option<CharSequence> NET_CHECKSUM_LEVEL;
352+
353+
/**
354+
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
355+
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES}
356+
*/
357+
public static final Option<CharSequence> NET_CHECKSUM_TYPES;
358+
359+
/**
360+
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
361+
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL}
362+
*/
363+
public static final Option<CharSequence> NET_ENCRYPTION_LEVEL;
364+
365+
/**
366+
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
367+
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES}
368+
*/
369+
public static final Option<CharSequence> NET_ENCRYPTION_TYPES;
370+
347371

348372
/** The unmodifiable set of all extended options */
349373
private static final Set<Option<?>> OPTIONS = Set.of(
@@ -442,7 +466,15 @@ private OracleR2dbcOptions() {}
442466
LDAP_TRUSTMANAGER_FACTORY_ALGORITHM = Option.valueOf(
443467
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_TRUSTMANAGER_FACTORY_ALGORITHM),
444468
LDAP_CONTEXT_PROTOCOL = Option.valueOf(
445-
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_CONTEXT_PROTOCOL)
469+
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_CONTEXT_PROTOCOL),
470+
NET_CHECKSUM_LEVEL = Option.valueOf(
471+
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL),
472+
NET_CHECKSUM_TYPES = Option.valueOf(
473+
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES),
474+
NET_ENCRYPTION_LEVEL = Option.valueOf(
475+
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL),
476+
NET_ENCRYPTION_TYPES = Option.valueOf(
477+
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES)
446478
);
447479

448480
/**

0 commit comments

Comments
 (0)