Federation.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User The contents of this file are subject to the terms
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews of the Common Development and Distribution License
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt (the License). You may not use this file except in
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews compliance with the License.
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt You can obtain a copy of the License at
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt https://opensso.dev.java.net/public/CDDLv1.0.html or
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt See the License for the specific language governing
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User permission and limitations under the License.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews When distributing Covered Code, include this CDDL
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews Header Notice in each file and include the License file
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews If applicable, add the following below the CDDL Header,
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews with the fields enclosed by brackets [] replaced by
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews your own identifying information:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews "Portions Copyrighted [year] [name of copyright owner]"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews $Id: Federation.jsp,v 1.4 2008/06/25 05:50:22 qcheng Exp $
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews<%@ page info="Federation" language="java" %>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
415d630b6309922caee8469384a6fab75cf05032Mark Andrews<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews<jato:useViewBean
415d630b6309922caee8469384a6fab75cf05032Mark Andrews className="com.sun.identity.console.federation.FederationViewBean"
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews fireChildDisplayEvents="true" >
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews<cc:i18nbundle baseName="amConsole" id="amConsole"
415d630b6309922caee8469384a6fab75cf05032Mark Andrews locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews<cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2007" fireDisplayEvents="true">
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews<link rel="stylesheet" type="text/css" href="../console/css/openam.css" />
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews<script language="javascript">
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews swichView() is called when the entity provider dropdown menu is
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User selected. This is called to submit the page with the selected value
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews in the dropdown submitted as the value in the form.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews function switchView(selectElmName) {
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews var txtSelectProtocol = "<cc:text name="txtSelectProtocol" defaultValue="federation.entity.select.protocol" bundleID="amConsole" />";
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews var optionSAML2 = "<cc:text name="txtProtocolSAMLv2" defaultValue="federation.entity.protocol.samlv2" bundleID="amConsole" />";
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt var optionIDFF = "<cc:text name="txtProtocolIDFF" defaultValue="federation.entity.protocol.idff" bundleID="amConsole" />";
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews var optionWSFed = "<cc:text name="txtProtocolWSFed" defaultValue="federation.entity.protocol.wsfed" bundleID="amConsole" />";
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt var closeBtn = '<p><div class="TtlBtnDiv"><input name="btnClose" type="submit" class="Btn1" value="<cc:text name="txtCloseBtn" defaultValue="ajax.close.button" bundleID="amConsole" />" onClick="focusMain();return false;" /></div></p>';
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews function gotoProtocolPage(radio) {
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews top.location = '../federation/CreateSAML2MetaData.jsp?p=' + radio.value;
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater function selectProviderType() {
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews document.getElementById('dlg').style.height = '175px';
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews var str = '<form name="dummy" action="#" onSubmit="return false;">' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews '<b>' + txtSelectProtocol + '</b><p><div style="text-align:left">' +
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater '<input type="radio" name="protocoltype" value="samlv2"' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews ' onClick="gotoProtocolPage(this);">' +
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews optionSAML2 + '<br />' +
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User '<input type="radio" name="protocoltype" value="idff"' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews ' onClick="gotoProtocolPage(this);">' +
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews optionIDFF + '<br />' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews '<input type="radio" name="protocoltype" value="wsfed"' +
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews ' onClick="gotoProtocolPage(this);">' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews optionWSFed + '</div>' +
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews closeBtn + '</p>' +
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews document.getElementById('dlg').innerHTML = '<center>' +
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User str + '</center>';
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User return false;
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews<script language="javascript" src="../console/js/am.js"></script>
415d630b6309922caee8469384a6fab75cf05032Mark Andrews<div id="main" style="position: absolute; margin: 0; border: none; padding: 0; width:auto; height:1000">
415d630b6309922caee8469384a6fab75cf05032Mark Andrews<cc:form name="Federation" method="post" defaultCommandChild="/btnSearch">
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews<jato:hidden name="szCache" />
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt<%-- HEADER --%>
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox User<script language="javascript">
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User function confirmLogout() {
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();"
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<cc:tabs name="tabCommon" bundleID="amConsole" />
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User<table border="0" cellpadding="10" cellspacing="0" width="100%">
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews <cc:alertinline name="ialertCommon" bundleID="amConsole" />
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson<%-- PAGE CONTENT --%>
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews<cc:propertysheet name="propertyAttributes" bundleID="amConsole" showJumpLinks="true" />
415d630b6309922caee8469384a6fab75cf05032Mark Andrews<%-- END CONTENT --%>
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User<div id="dlg" class="dvs"></div>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson</jato:useViewBean>