}
private boolean getAdultConfirmation(URLConnection uc_signin, CookieJar cj) throws IOException {
StringBuffer confirm = Http.net().receivePage(uc_signin);
JConfig.log().dump2File("sign_in-a2.html", confirm);
JHTML confirmPage = new JHTML(confirm);
List<JHTML.Form> confirm_forms = confirmPage.getForms();
boolean enqueued = false;
for (JHTML.Form finalForm : confirm_forms) {
if (finalForm.hasInput("MfcISAPICommand", "AdultSignIn")) {
uc_signin = cj.connect(finalForm.getAction(), finalForm.getFormData(), null, true, null);
StringBuffer confirmed = Http.net().receivePage(uc_signin);
JConfig.log().dump2File("sign_in-a3.html", confirmed);
JHTML htdoc = new JHTML(confirmed);
JHTML.Form curForm = htdoc.getFormWithInput("pass");
if (curForm != null) {
MQFactory.getConcrete("login").enqueue("FAILED Couldn't find a password form on the sign in page.");
return false;
}
enqueued = true;
if(htdoc.grep(T.s("your.user.id.or.password.is.incorrect")) != null) {
MQFactory.getConcrete("login").enqueue("FAILED Incorrect login information.");
} else if(htdoc.grep(T.s("your.information.has.been.verified"))!=null) {
MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
} else if(htdoc.grep(T.s("mature.audiences.accepted")) != null) {
MQFactory.getConcrete("login").enqueue("SUCCESSFUL");
} else if(htdoc.grep(T.s("mature.audiences.disallowed.outside.the.us")) != null) {
MQFactory.getConcrete("login").enqueue("NEUTRAL Turn off 'Mature Audiences' in JBidwatcher configuration; it's not valid for non-US users.");
JConfig.setConfiguration("ebay.mature", "false");
JConfig.setConfiguration("ebay.international", "true");
} else {
JConfig.log().logFile("Neutral login result...", confirmed);