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

Test Application Authentication, Phase 1

As in the last chapter, here again we need to edit the code to provide our company-specific addresses for two-factor authentication.

images Note Edit the code found in the file named Chapter10/orajavsec/OracleJavaSecure.java.

    private static String expectedDomain = "ORGDOMAIN" ; // All Caps     private static String comDomain = "org.com";     private static String smtpHost = "smtp." + comDomain;     private static String baseURL =         "http://www.org.com/servlet/textpage.PageServlet?ACTION=O&NEWPID=";

We also have an embedded password in the setAppVerConnection() method and several more in the main() ...

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