default.jsp revision e07ee287a1c75dec6be37e5cbb79d48788ebdc97
15394N/A<%--
15394N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
15394N/A
18379N/A Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
15394N/A
15394N/A The contents of this file are subject to the terms
15394N/A of the Common Development and Distribution License
17185N/A (the License). You may not use this file except in
15394N/A compliance with the License.
15394N/A
17176N/A You can obtain a copy of the License at
17176N/A https://opensso.dev.java.net/public/CDDLv1.0.html or
18379N/A opensso/legal/CDDLv1.0.txt
15394N/A See the License for the specific language governing
19051N/A permission and limitations under the License.
15394N/A
18810N/A When distributing Covered Code, include this CDDL
15394N/A Header Notice in each file and include the License file
15394N/A at opensso/legal/CDDLv1.0.txt.
18615N/A If applicable, add the following below the CDDL Header,
19052N/A with the fields enclosed by brackets [] replaced by
15394N/A your own identifying information:
18379N/A "Portions Copyrighted [year] [name of copyright owner]"
15394N/A
15394N/A $Id: default.jsp,v 1.3 2008/10/29 03:11:52 veiming Exp $
15394N/A
18379N/A Portions Copyrighted 2013-2014 ForgeRock AS.
15394N/A--%>
15394N/A
15394N/A<%@page
15394N/Aimport="com.sun.identity.saml2.common.SAML2Constants,
15394N/Acom.sun.identity.saml2.common.SAML2Utils,
18379N/Aorg.owasp.esapi.ESAPI"
18379N/A%>
18379N/A
18379N/A<html>
18505N/A<head>
18379N/A <title>SAML2 Plugin Default Page</title>
18379N/A <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
18379N/A</head>
18379N/A
18379N/A<body>
18379N/A<%
18379N/A String messageParam = request.getParameter(SAML2Constants.MESSAGE);
18379N/A if (!ESAPI.validator().isValidInput("HTTP Parameter Value" + messageParam, messageParam,
15394N/A "HTTPParameterValue", 2000, true)) {
15394N/A messageParam = null;
15394N/A }
15394N/A if (messageParam != null && messageParam.length() != 0) {
18379N/A %>
18379N/A <%= ESAPI.encoder().encodeForHTML(SAML2Utils.bundle.getString(messageParam)) %>
18379N/A <%
15394N/A } else {
15394N/A %>
15394N/A <%= ESAPI.encoder().encodeForHTML(SAML2Utils.bundle.getString("missingMessageParam")) %>
15394N/A <%
15394N/A }
15394N/A String relayState = (String) request.getAttribute(SAML2Constants.RELAY_STATE);
15394N/A if (relayState != null && !relayState.isEmpty()) {
15394N/A %>
15394N/A <a href="<%= relayState %>"><%= ESAPI.encoder().encodeForHTML(SAML2Utils.bundle.getString("followRelayState")) %></a>
15394N/A <%
19051N/A }
19051N/A%>
18505N/A
18505N/A</body>
18396N/A</html>
18396N/A