validatorRpt.jsp revision 984ea967792540448d05fba2ac6fad5dadf91fd6
3019N/A<%--
3019N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3019N/A
3019N/A Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
3019N/A
3019N/A The contents of this file are subject to the terms
3019N/A of the Common Development and Distribution License
3019N/A (the License). You may not use this file except in
3019N/A compliance with the License.
3019N/A
3019N/A You can obtain a copy of the License at
3019N/A https://opensso.dev.java.net/public/CDDLv1.0.html or
3019N/A opensso/legal/CDDLv1.0.txt
3019N/A See the License for the specific language governing
3019N/A permission and limitations under the License.
3019N/A
3019N/A When distributing Covered Code, include this CDDL
3019N/A Header Notice in each file and include the License file
3019N/A at opensso/legal/CDDLv1.0.txt.
3019N/A If applicable, add the following below the CDDL Header,
3019N/A with the fields enclosed by brackets [] replaced by
3019N/A your own identifying information:
5218N/A "Portions Copyrighted [year] [name of copyright owner]"
5636N/A
3019N/A $Id: validatorRpt.jsp,v 1.4 2009/01/05 23:23:25 veiming Exp $
3019N/A
3019N/A--%>
3019N/A
3019N/A<%@ page import="com.sun.identity.common.SystemConfigurationUtil" %>
3019N/A<%@ page import="com.sun.identity.shared.Constants" %>
3019N/A<%@ page import="com.sun.identity.workflow.ValidateSAML2" %>
3019N/A<%@ page import="com.sun.identity.workflow.WorkflowException" %>
3019N/A<%@ page import="java.net.URLEncoder" %>
3019N/A<%@ page import="java.text.MessageFormat" %>
3019N/A<%@ page contentType="text/html; charset=utf-8" language="java" %>
3019N/A
3019N/A<html>
3019N/A<head>
3019N/A
3019N/A<%
3019N/A String deployuri = SystemConfigurationUtil.getProperty(
3019N/A Constants.AM_SERVICES_DEPLOYMENT_DESCRIPTOR);
3019N/A String idp = request.getParameter("idp");
3019N/A String sp = request.getParameter("sp");
3019N/A String fedlet = request.getParameter("fedlet");
3019N/A boolean bFedlet = (fedlet != null);
3019N/A
3019N/A String authidp = request.getParameter("authidp");
3019N/A boolean bAuthidp = (authidp != null) && (authidp.length() > 0);
3019N/A boolean bAuthidpPassed = bAuthidp && authidp.equals("1");
3019N/A
3019N/A String authsp = request.getParameter("authsp");
3019N/A boolean bAuthsp = (authsp != null) && (authsp.length() > 0);
3019N/A boolean bAuthspPassed = bAuthsp && authsp.equals("1");
3019N/A
3019N/A String acclink = request.getParameter("acclink");
3019N/A boolean bAcclink = (acclink != null) && (acclink.length() > 0);
3019N/A boolean bAcclinkPassed = bAcclink && acclink.equals("1");
3019N/A
5636N/A String slo = request.getParameter("slo");
3019N/A boolean bSLO = (slo != null) && (slo.length() > 0);
5636N/A boolean bSLOPassed = bSLO && slo.equals("1");
3019N/A
3019N/A String sso = request.getParameter("sso");
5636N/A boolean bSSO = (sso != null) && (sso.length() > 0);
3019N/A boolean bSSOPassed = bSSO && sso.equals("1");
5636N/A
3019N/A String accterm = request.getParameter("accterm");
3019N/A boolean bAccTerm = (accterm != null) && (accterm.length() > 0);
3019N/A boolean bAccTermPassed = bAccTerm && accterm.equals("1");
3019N/A
3019N/A String locale = request.getParameter("locale");
3019N/A%>
3019N/A
3019N/A<link rel="stylesheet" type="text/css" href="<%= deployuri %>/com_sun_web_ui/css/css_ns6up.css" />
3019N/A<link rel="stylesheet" type="text/css" href="<%= deployuri %>/console/css/opensso.css" />
3019N/A
3019N/A<script language="JavaScript">
3019N/A</script>
3019N/A</head>
5218N/A
3019N/A<body class="DefBdy">
3019N/A <div style="padding:10px">
3019N/A <div style="height:20px; width:100%; background-color:white">&nbsp;</div>
3019N/A
3019N/A<table border=0 cellpadding=5 cellspacing=0 width="100%">
<tr>
<td bgcolor="#949ea5">
<%
out.print("<div class=\"ConFldSetLgdDiv\" style=\"color:#FFFFFF\">&#160;");
out.print(ValidateSAML2.getMessage("validate.report.title", locale));
out.print("</div>");
%>
</td>
</tr>
</table>
<table border=0 cellpadding=10 cellspacing=0 width="100%">
<tr>
<td bgcolor="#c0c6cf">
<table border=0 cellpadding=1 cellspacing=0 width="100%">
<tr>
<td bgcolor="#999999">
<table border=0 cellpadding=1 cellspacing=0 width="100%">
<tr>
<td bgcolor="#e9ecee">
<table border=0 cellpadding=2 cellspacing=0 width="100%">
<tr>
<td><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="5" width="1" /></td>
</tr>
<tr>
<td width="1%" nowrap><b>
<%
out.println(ValidateSAML2.getMessage(
"validate.report.task.label.idp", locale));
%>
:</b></td>
<td width="99%"><%= idp %></td>
</tr>
<tr>
<td width="1%" nowrap>
<%
if (bFedlet) {
out.print("<b>" + ValidateSAML2.getMessage(
"validate.report.task.label.fedlet", locale) + ":</b>");
} else {
out.print("<b>" + ValidateSAML2.getMessage(
"validate.report.task.label.sp", locale) + ":</b>");
}
%>
</td>
<td width="99%">
<%
if (fedlet != null) {
out.print(fedlet);
} else {
out.print(sp);
}
%>
</td>
</tr>
<tr>
<td><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="5" width="1" /></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr>
<td bgcolor="#999999">
<table border=0 cellpadding=5 cellspacing=1 width="100%">
<tr style="background-color:#e9ecee">
<%
out.println("<th width=\"1%\">" +
ValidateSAML2.getMessage("validate.report.tbl.hdr.test", locale) +
"</th>");
out.println("<th width=\"99%\">" +
ValidateSAML2.getMessage("validate.report.tbl.hdr.result", locale) +
"</th>");
out.println("</tr>");
if (!bFedlet) {
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" +
ValidateSAML2.getMessage("validate.report.task.auth.idp", locale) +
"</td>");
if (bAuthidp) {
if (bAuthidpPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.idp.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.idp.failed", locale) + "</td>");
}
} else {
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\">" +
ValidateSAML2.getMessage("validate.report.task.auth.sp", locale) + "</td>");
if (bAuthsp) {
if (bAuthspPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.sp.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.auth.sp.failed", locale) + "</td>");
}
} else {
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\">" +
ValidateSAML2.getMessage("validate.report.task.account.linking", locale) +
"</td>");
if (bAcclink) {
if (bAcclinkPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.linking.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.linking.failed", locale) + "</td>");
}
} else {
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\">" +
ValidateSAML2.getMessage("validate.report.task.single.logout", locale) +
"</td>");
if (bSLO) {
if (bSLOPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.failed", locale) + "</td>");
}
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.logout.not.tested", locale) + "</td>");
}
out.println("</tr>");
}
%>
<tr style="background-color:#FFFFFF">
<%
out.println("<td nowrap=\"true\">" +
ValidateSAML2.getMessage("validate.report.task.single.login", locale) +
"</td>");
if (bSSO) {
if (bSSOPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.failed", locale) + "</td>");
}
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.single.login.not.tested", locale) + "</td>");
}
%>
</tr>
<%
if (!bFedlet) {
out.println("<tr style=\"background-color:#FFFFFF\">");
out.println("<td nowrap=\"true\">" + ValidateSAML2.getMessage("validate.report.task.account.termination", locale) + "</td>");
if (bAccTerm) {
if (bAccTermPassed) {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.passed", locale) + "</td>");
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.failed", locale) + "</td>");
}
} else {
out.println("<td>" + ValidateSAML2.getMessage("validator.report.account.termination.not.tested", locale) + "</td>");
}
out.println("</tr>");
}
%>
</table>
</td></tr>
</table>
</td></tr>
</table>
</div>
</body>
</html>