validatorRpt.jsp revision 9740fa737ef2ed9453ab46d145777dbbbf6a747b
$Id: validatorRpt.jsp,v 1.4 2009/01/05 23:23:25 veiming Exp $
<%@ page import="com.sun.identity.common.SystemConfigurationUtil" %>
<%@ page import="com.sun.identity.shared.Constants" %>
<%@ page import="com.sun.identity.workflow.ValidateSAML2" %>
<%@ page import="org.owasp.esapi.ESAPI" %>
<%@ page contentType="text/html; charset=utf-8" language="java" %>
String deployuri = SystemConfigurationUtil.getProperty(
String idp = request.getParameter("idp");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + idp, idp,"HTTPParameterValue", 2000, false)) {
String sp = request.getParameter("sp");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + sp, sp, "HTTPParameterValue", 2000, false)) {
String fedlet = request.getParameter("fedlet");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + fedlet, fedlet, "HTTPParameterValue", 2000, true)) {
String authidp = request.getParameter("authidp");
boolean bAuthidp = (authidp != null) && (authidp.length() > 0);
boolean bAuthidpPassed = bAuthidp && authidp.equals("1");
String authsp = request.getParameter("authsp");
boolean bAuthsp = (authsp != null) && (authsp.length() > 0);
boolean bAuthspPassed = bAuthsp && authsp.equals("1");
String acclink = request.getParameter("acclink");
boolean bAcclink = (acclink != null) && (acclink.length() > 0);
boolean bAcclinkPassed = bAcclink && acclink.equals("1");
String slo = request.getParameter("slo");
boolean bSLO = (slo != null) && (slo.length() > 0);
boolean bSLOPassed = bSLO && slo.equals("1");
String sso = request.getParameter("sso");
boolean bSSO = (sso != null) && (sso.length() > 0);
boolean bSSOPassed = bSSO && sso.equals("1");
String accterm = request.getParameter("accterm");
boolean bAccTerm = (accterm != null) && (accterm.length() > 0);
boolean bAccTermPassed = bAccTerm && accterm.equals("1");
String locale = request.getParameter("locale");
out.print("<div class=\"ConFldSetLgdDiv\" style=\"color:#FFFFFF\"> ");
out.print("</div>");
<td><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="5" width="1" /></td>
"validate.report.task.label.idp", locale));
"validate.report.task.label.fedlet", locale) + ":</b>");
"validate.report.task.label.sp", locale) + ":</b>");
out.print(fedlet);
out.print(sp);
<td><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="5" width="1" /></td>
out.println("<th width=\"1%\">" +
out.println("<th width=\"99%\">" +
out.println("</tr>");
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" +
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.idp.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.idp.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.idp.not.tested", locale) + "</td>");
out.println("</tr>");
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" +
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.sp.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.sp.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.sp.not.tested", locale) + "</td>");
out.println("</tr>");
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" +
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.linking.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.linking.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.linking.not.tested", locale) + "</td>");
out.println("</tr>");
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" +
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.not.tested", locale) + "</td>");
out.println("</tr>");
out.println("<td nowrap=\"true\">" +
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.not.tested", locale) + "</td>");
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" + ValidateSAML2.getMessage("validate.report.task.account.termination", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.passed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.failed", locale) + "</td>");
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.not.tested", locale) + "</td>");
out.println("</tr>");