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

Testing a Second Application

Reflect for a moment on what we have done so far in the previous tests. We have an inner class in the OracleJavaSecure class that implements RevLvlClassIntfc, and we pass that to Oracle database for application validation. How does the Oracle JVM handle that inner class? Is it on the CLASSPATH or otherwise known to the Oracle JVM?

In this specific case, we actually loaded the class to Oracle Database when we loaded the outer class, OracleJavaSecure. If you have a SQL client application that lets you browse structures in Oracle, you can see the orajavsec.OracleJavaSecure.InnerRevLvlClass listed in the database. You can also execute this query to see it:

SELECT * FROM SYS.ALL_OBJECTS WHERE OBJECT_TYPE = 'JAVA CLASS' ...

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