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

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.