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