I want to configuring Network Data Encryption and Integrity for Thin driver. Vendor said that they have enable encryption for their oracle db.
CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL=REQUIRED CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES=AES256
I have oracle thin jar (ojdbc7) and I want to fetch data from db using encrypted connection.
int level = AnoServices.REQUIRED;
props.put("oracle.net.encryption_client",
Service.getLevelString(level));
props.put("oracle.net.encryption_types_client", "AES256");
props.put("oracle.net.crypto_checksum_client",
Service.getLevelString(level));
props.put("oracle.net.crypto_checksum_types_client", "MD5");
OracleDataSource ods = new OracleDataSource();
ods.setUser(userId);
ods.setPassword(password);
ods.setURL(url);
ods.setConnectionProperties(props);
Connection conn = ods.getConnection();
I have tried with above code but ending with ORA-12650 error. Is it possible to do with oracle thin ? Can anyone please help........