As in the last chapter, here again we need to edit the code to provide our company-specific addresses for two-factor authentication.
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