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