Skip to content

Allow Oracle Net Encryption and Checksum Properties #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ supported by Oracle R2DBC:
- Setting this option to "false" may resolve "ORA-01882: timezone region not
found". The ORA-01882 error happens when Oracle Database doesn't recognize
the name returned by `java.util.TimeZone.getDefault().getId()`.
- [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)
- [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)
- [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)
- [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)

### Thread Safety and Parallel Execution
Oracle R2DBC's `ConnectionFactory` and `ConnectionFactoryProvider` are the only
Expand Down
34 changes: 33 additions & 1 deletion src/main/java/oracle/r2dbc/OracleR2dbcOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,30 @@ private OracleR2dbcOptions() {}
*/
public static final Option<CharSequence> LDAP_CONTEXT_PROTOCOL;

/**
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL}
*/
public static final Option<CharSequence> NET_CHECKSUM_LEVEL;

/**
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES}
*/
public static final Option<CharSequence> NET_CHECKSUM_TYPES;

/**
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL}
*/
public static final Option<CharSequence> NET_ENCRYPTION_LEVEL;

/**
* Configures the Oracle JDBC Connection used by Oracle R2DBC as specified by:
* {@link OracleConnection#CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES}
*/
public static final Option<CharSequence> NET_ENCRYPTION_TYPES;


/** The unmodifiable set of all extended options */
private static final Set<Option<?>> OPTIONS = Set.of(
Expand Down Expand Up @@ -442,7 +466,15 @@ private OracleR2dbcOptions() {}
LDAP_TRUSTMANAGER_FACTORY_ALGORITHM = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_TRUSTMANAGER_FACTORY_ALGORITHM),
LDAP_CONTEXT_PROTOCOL = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_CONTEXT_PROTOCOL)
OracleConnection.CONNECTION_PROPERTY_THIN_LDAP_SSL_CONTEXT_PROTOCOL),
NET_CHECKSUM_LEVEL = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_LEVEL),
NET_CHECKSUM_TYPES = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_NET_CHECKSUM_TYPES),
NET_ENCRYPTION_LEVEL = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL),
NET_ENCRYPTION_TYPES = Option.valueOf(
OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES)
);

/**
Expand Down