validatorMain.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
f63f7506be0210195779706f51c58646e568cc40anovick<%--
f63f7506be0210195779706f51c58646e568cc40anovick DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick The contents of this file are subject to the terms
f63f7506be0210195779706f51c58646e568cc40anovick of the Common Development and Distribution License
f63f7506be0210195779706f51c58646e568cc40anovick (the License). You may not use this file except in
f63f7506be0210195779706f51c58646e568cc40anovick compliance with the License.
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick You can obtain a copy of the License at
f63f7506be0210195779706f51c58646e568cc40anovick https://opensso.dev.java.net/public/CDDLv1.0.html or
f63f7506be0210195779706f51c58646e568cc40anovick opensso/legal/CDDLv1.0.txt
f63f7506be0210195779706f51c58646e568cc40anovick See the License for the specific language governing
f63f7506be0210195779706f51c58646e568cc40anovick permission and limitations under the License.
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick When distributing Covered Code, include this CDDL
f63f7506be0210195779706f51c58646e568cc40anovick Header Notice in each file and include the License file
f63f7506be0210195779706f51c58646e568cc40anovick at opensso/legal/CDDLv1.0.txt.
f63f7506be0210195779706f51c58646e568cc40anovick If applicable, add the following below the CDDL Header,
f63f7506be0210195779706f51c58646e568cc40anovick with the fields enclosed by brackets [] replaced by
f63f7506be0210195779706f51c58646e568cc40anovick your own identifying information:
f63f7506be0210195779706f51c58646e568cc40anovick "Portions Copyrighted [year] [name of copyright owner]"
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick $Id: validatorMain.jsp,v 1.6 2009/01/09 17:42:57 veiming Exp $
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick--%>
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick<%@ page import="com.sun.identity.common.SystemConfigurationUtil" %>
f63f7506be0210195779706f51c58646e568cc40anovick<%@ page import="com.sun.identity.shared.Constants" %>
f63f7506be0210195779706f51c58646e568cc40anovick<%@ page import="com.sun.identity.workflow.ValidateSAML2" %>
f63f7506be0210195779706f51c58646e568cc40anovick<%@ page import="java.net.URLEncoder" %>
f63f7506be0210195779706f51c58646e568cc40anovick<%@ page contentType="text/html; charset=utf-8" language="java" %>
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick<%
f63f7506be0210195779706f51c58646e568cc40anovick request.setCharacterEncoding("UTF-8");
f63f7506be0210195779706f51c58646e568cc40anovick String deployuri = SystemConfigurationUtil.getProperty(
f63f7506be0210195779706f51c58646e568cc40anovick Constants.AM_SERVICES_DEPLOYMENT_DESCRIPTOR);
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick String locale = request.getParameter("locale");
f63f7506be0210195779706f51c58646e568cc40anovick String pageTitle = ValidateSAML2.getMessage(
f63f7506be0210195779706f51c58646e568cc40anovick "federation.connectivity.test", locale);
f63f7506be0210195779706f51c58646e568cc40anovick String cancelButton = ValidateSAML2.getMessage("button.cancel", locale);
f63f7506be0210195779706f51c58646e568cc40anovick%>
f63f7506be0210195779706f51c58646e568cc40anovick<html>
f63f7506be0210195779706f51c58646e568cc40anovick<head>
f63f7506be0210195779706f51c58646e568cc40anovick<link rel="stylesheet" type="text/css" href="<%= deployuri %>/com_sun_web_ui/css/css_ns6up.css" />
f63f7506be0210195779706f51c58646e568cc40anovick<link rel="shortcut icon" href="<%= deployuri %>/com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon"></link>
f63f7506be0210195779706f51c58646e568cc40anovick<link rel="stylesheet" type="text/css" href="<%= deployuri %>/console/css/openam.css" />
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick</head>
f63f7506be0210195779706f51c58646e568cc40anovick<body class="DefBdy" onload="onLoad()">
f63f7506be0210195779706f51c58646e568cc40anovick<iframe name="hidden1" style="display:none"></iframe>
f63f7506be0210195779706f51c58646e568cc40anovick<iframe name="hidden2" style="display:none"></iframe>
f63f7506be0210195779706f51c58646e568cc40anovick<table width="100%" border="0" cellpadding="0" cellspacing="0" class="MstTblBot" title="">
f63f7506be0210195779706f51c58646e568cc40anovick<tbody>
f63f7506be0210195779706f51c58646e568cc40anovick<tr>
f63f7506be0210195779706f51c58646e568cc40anovick<td class="MstTdTtl" width="99%" bgcolor="#637583" valign="bottom">
f63f7506be0210195779706f51c58646e568cc40anovick<div class="MstDivTtl"><br /><img name="Home.mhCommon.ProdName" src="<%= deployuri %>/console/images/PrimaryProductName.png" alt="" /></div></td><td class="MstTdLogo" width="1%" bgcolor="#637583"><img src="<%= deployuri %>/com_sun_web_ui/images/other/javalogo.gif" alt="Java(TM) Logo" border="0" height="55" width="31" /></td></tr></tbody></table>
f63f7506be0210195779706f51c58646e568cc40anovick<table border="0" width="100%" cellpadding="0" cellspacing="0">
f63f7506be0210195779706f51c58646e568cc40anovick<tr valign="bottom">
f63f7506be0210195779706f51c58646e568cc40anovick<td nowrap="nowrap" valign="bottom" bgcolor="#4e606e">
f63f7506be0210195779706f51c58646e568cc40anovick<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
f63f7506be0210195779706f51c58646e568cc40anovick</td>
f63f7506be0210195779706f51c58646e568cc40anovick</tr>
f63f7506be0210195779706f51c58646e568cc40anovick</table>
f63f7506be0210195779706f51c58646e568cc40anovick<table border="0" width="100%" cellpadding="0" cellspacing="0">
f63f7506be0210195779706f51c58646e568cc40anovick<tr><td bgcolor="#677784"><img name="Home.mhCommon.EndorserLogo" src="/opensso/com_sun_web_ui/images/masthead/masthead-sunname.gif" alt="Sun(TM) Microsystems, Inc." align="right" border="0" height="10" width="108" /></td></tr></tbody></table>
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick<table border="0" width="100%" cellpadding="0" cellspacing="0">
f63f7506be0210195779706f51c58646e568cc40anovick<tr valign="bottom">
f63f7506be0210195779706f51c58646e568cc40anovick<td nowrap="nowrap" valign="bottom">
f63f7506be0210195779706f51c58646e568cc40anovick<div class="TtlTxtDiv">
f63f7506be0210195779706f51c58646e568cc40anovick
f63f7506be0210195779706f51c58646e568cc40anovick<h1 class="TaskTitle"><%= pageTitle %></h1>
f63f7506be0210195779706f51c58646e568cc40anovick</div>
f63f7506be0210195779706f51c58646e568cc40anovick</td>
f63f7506be0210195779706f51c58646e568cc40anovick<td align="right" nowrap="nowrap" valign="bottom">
f63f7506be0210195779706f51c58646e568cc40anovick<!-- div class="TtlBtnDiv"> <input name="btnCancel" type="submit" class="Btn1" value="<%= cancelButton %>" onmouseover="javascript: this.className='Btn1Hov'" onmouseout="javascript: this.className='Btn1'" onblur="javascript: this.className='Btn1'" onfocus="javascript: this.className='Btn1Hov'" onClick="cancelOp();return false;"/ -->
</div>
</td>
</tr>
</table>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<iframe src ="" name="controller" width="100%" height="20%" frameborder=0></iframe>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<div style="text-align:center">
<iframe src ="" width="95%" height="50%" name="worker" frameborder=1></iframe>
</center>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<form name="validatorForm" target="controller" method="POST"
action="validator.jsp">
<input type="hidden" name="realm" />
<input type="hidden" name="locale" />
<input type="hidden" name="cot" />
<input type="hidden" name="idp" />
<input type="hidden" name="sp" />
</form>
<iframe src ="validatorFooter.jsp?m=" width="100%" height="40" name="footer" frameborder=0></iframe>
<script language="Javascript">
var accLinkTimer;
var sloTimer;
var ssoTimer;
var accTermTimer;
function cancelOp() {
logout();
top.location = "<%= deployuri %>";
}
function logout() {
frames['controller'].logout();
}
function errorOccured() {
frames['worker'].location = 'validatorStatus.jsp';
logout();
}
function onLoad() {
<%
String realm = request.getParameter("realm");
String cot = request.getParameter("cot");
String idp = request.getParameter("idp");
String sp = request.getParameter("sp");
out.println("frames['worker'].location = 'validateWait.jsp?locale=" +
locale + "&m=" + URLEncoder.encode("validate.initializing") + "';");
%>
startTest();
}
function gotoHiddenFrame1(url) {
frames['hidden1'].location = url;
}
function gotoHiddenFrame2(url) {
frames['hidden2'].location = url;
}
function startTest() {
var f = document.forms['validatorForm'];
f.elements['realm'].value = '<%= realm %>';
f.elements['locale'].value = '<%= locale %>';
f.elements['cot'].value = '<%= cot %>';
f.elements['idp'].value = '<%= idp %>';
f.elements['sp'].value = '<%= sp %>';
f.submit();
}
function gotoURL(url) {
frames['worker'].location = url;
}
function showFooter(msg) {
frames['footer'].location = 'validatorFooter.jsp?locale=<%= locale %>&m=' + msg;
}
function authIdpPassed() {
frames['controller'].authIdpPassed();
}
function authIdpFailed() {
frames['controller'].authIdpFailed();
}
function authSpPassed() {
frames['controller'].authSpPassed();
}
function authSpFailed() {
frames['controller'].authSpFailed();
}
function accLinkPassed() {
clearTimeout(accLinkTimer);
frames['controller'].accLinkPassed();
frames['worker'].location = "validatorStatus.jsp";
}
function accLinkFailed() {
frames['controller'].accLinkFailed();
frames['worker'].location = "validatorStatus.jsp";
}
function trackAccountLink() {
accLinkTimer = setTimeout("accLinkFailed()", 5000);
}
function singleLogoutPassed() {
clearTimeout(sloTimer);
frames['controller'].sloPassed();
}
function sloFailed() {
frames['controller'].sloFailed();
frames['worker'].location = "validatorStatus.jsp";
}
function trackSingleLogout() {
sloTimer = setTimeout("sloFailed()", 5000);
}
function singleLoginPassed() {
clearTimeout(ssoTimer);
frames['worker'].location = "validatorStatus.jsp";
frames['controller'].ssoPassed();
}
function ssoFailed() {
frames['controller'].ssoFailed();
}
function trackSingleLogin() {
ssoTimer = setTimeout("ssoFailed()", 30000);
}
function accTermPassed() {
clearTimeout(accTermTimer);
frames['controller'].accTermPassed();
logout();
frames['controller'].getReport();
}
function accTermFailed() {
frames['controller'].accTermFailed();
frames['worker'].location = "validatorStatus.jsp";
}
function trackAccountTermination() {
accTermTimer = setTimeout("accTermFailed()", 5000);
}
function authIdp() {
frames['controller'].authIdp();
}
function authSp() {
frames['controller'].authSp();
}
function singleLogin() {
frames['controller'].singleLogin();
}
</script>
</body>
</html>