O'Reilly logo

Expert Oracle and Java Security: Programming Secure Oracle Database Applications with Java by David Coffin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required