Step2.java revision e7a19bb22c6d6d6a8731cfde7e4b96124e1d4e3b
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Step2.java,v 1.15 2010/01/04 19:08:36 veiming Exp $
*
* Portions Copyrighted 2011-2014 ForgeRock AS.
*/
public class Step2 extends ProtectedPage {
public ActionLink validateConfigDirLink =
public ActionLink validateCookieDomainLink =
public Step2() {
try {
publicSuffixies = new PSS();
} catch (IOException ioe) {
"Unable to load public suffix database");
}
}
public void onInit() {
val = getServerURL();
}
val = getCookieDomain();
}
}
}
} else {
}
if (!hasWritePermission(baseDir)) {
getLocalizedString("configuration.wizard.step2.no.write.permission.to.basedir") +
"</small>");
} else if (alreadyHasContent(baseDir)) {
"configuration.wizard.step2.basedir.already.has.content") + "</small>");
} else {
}
super.onInit();
}
if (f.exists() && f.isDirectory()) {
}
return false;
}
f = f.getParentFile();
}
}
public boolean validateConfigDir() {
} else if (!hasWritePermission(configDir)) {
"configuration.wizard.step2.no.write.permission.to.basedir"));
} else if (alreadyHasContent(configDir)) {
"configuration.wizard.step2.basedir.already.has.content"));
} else {
writeToResponse("true");
}
return false;
}
public boolean validateCookieDomain() {
"configuration.wizard.step2.invalid.cookie.domain"));
"configuration.wizard.step2.invalid.tld"));
"configuration.wizard.step2.mismatched.cookie.domain"));
} else {
writeToResponse("true");
}
return false;
}
return false;
}
}
if (publicSuffixies == null) {
return false;
}
return false;
}
try {
} catch (MalformedURLException mue) {
return false;
}
return true;
}
}
return false;
}
if (publicSuffixies == null) {
return null;
}
}
private String getServerURL() {
}
/**
* used to add the key to the page and to the session so it can
* be retrieved when the final store is done
*/
}
}