validatorMain.jsp revision 9740fa737ef2ed9453ab46d145777dbbbf6a747b
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews The contents of this file are subject to the terms
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews of the Common Development and Distribution License
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews (the License). You may not use this file except in
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews compliance with the License.
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews You can obtain a copy of the License at
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews https://opensso.dev.java.net/public/CDDLv1.0.html or
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews See the License for the specific language governing
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews permission and limitations under the License.
ffcd068f879349503183329a5c4527d7f6cc5989Mark Andrews When distributing Covered Code, include this CDDL
ffcd068f879349503183329a5c4527d7f6cc5989Mark Andrews Header Notice in each file and include the License file
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews If applicable, add the following below the CDDL Header,
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews with the fields enclosed by brackets [] replaced by
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews your own identifying information:
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews "Portions Copyrighted [year] [name of copyright owner]"
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews $Id: validatorMain.jsp,v 1.6 2009/01/09 17:42:57 veiming Exp $
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews Portions Copyrighted 2013 ForgeRock AS
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page import="com.sun.identity.common.SystemConfigurationUtil" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page import="com.sun.identity.shared.Constants" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page import="com.sun.identity.workflow.ValidateSAML2" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page import="java.net.URLEncoder" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page import="org.owasp.esapi.ESAPI" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews<%@ page contentType="text/html; charset=utf-8" language="java" %>
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews String deployuri = SystemConfigurationUtil.getProperty(
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews String locale = request.getParameter("locale");
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + locale, locale, "HTTPParameterValue", 20, false)) {
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews locale = "";
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews String pageTitle = ValidateSAML2.getMessage(
620508359f9bb21cd5df7fdf2e6f4677903fb539Mark Andrews String cancelButton = ValidateSAML2.getMessage("button.cancel", locale);
<link rel="shortcut icon" href="<%= deployuri %>/com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon"></link>
<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>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<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>
<h1 class="TaskTitle"><%= ESAPI.encoder().encodeForHTML(pageTitle) %></h1>
<!-- 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><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
<div><img src="<%= deployuri %>/com_sun_web_ui/images/other/dot.gif" alt="" border="0" height="10" width="1" /></div>
action="validator.jsp">
<iframe src ="validatorFooter.jsp?m=" width="100%" height="40" name="footer" frameborder=0></iframe>
top.location = "<%= deployuri %>";
frames['worker'].location = 'validatorStatus.jsp';
String realm = request.getParameter("realm");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + realm, realm, "HTTPParameterValue", 2000, false)) {
String cot = request.getParameter("cot");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + cot, cot, "HTTPParameterValue", 2000, false)) {
String idp = request.getParameter("idp");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + idp, idp, "HTTPParameterValue", 2000, false)) {
String sp = request.getParameter("sp");
if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + sp, sp, "HTTPParameterValue", 2000, false)) {
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();
frames['footer'].location = 'validatorFooter.jsp?locale=<%= locale %>&m=' + msg;
frames['worker'].location = "validatorStatus.jsp";
frames['worker'].location = "validatorStatus.jsp";
frames['worker'].location = "validatorStatus.jsp";
frames['worker'].location = "validatorStatus.jsp";
frames['worker'].location = "validatorStatus.jsp";