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

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.