Coding to Test Client/Server Secret Password Encryption

The next line is at the top of our Java code in OracleJavaSecure.java. Uncomment it and copy the entire code into your Oracle client.

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED appsec."orajavsec/OracleJavaSecure" AS

For security, scroll down to the class body and assure you do not have a valid password in the connection string. If you do, remove the password from the connection string before executing this command in Oracle.

    private static String appsecConnString =         "jdbc:oracle:thin:AppSec/password@localhost:1521:Orcl";

Execute the script in your Oracle client (e.g., SQL*Plus) to load the Java code into the Oracle database. This command, as we have seen, loads the Java ...

Get Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.