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