Get Application Authentication Connection and Role

We should always be on the lookout to make using security easier for developers. With that in mind, we are going to combine into a single step, what had previously been a couple steps that asked our developers to implement separately. Up to this point we have asked our developers to, at a minimum, set their application context, then get an application connection and finally call Oracle Database to set their secure application role. We are still going to have the developers set their application context, but we are going to combine the request for an application connection with the request to get the secure application role. We will do this with a new method, getAAConnRole() shown in Listing 10-56 ...

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.