fedletEncode.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
c92c50783e4e93699f2a42643b8f200b9b719c87Automatic Updater DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein The contents of this file are subject to the terms
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein of the Common Development and Distribution License
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein (the License). You may not use this file except in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein You can obtain a copy of the License at
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein https://opensso.dev.java.net/public/CDDLv1.0.html or
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein See the License for the specific language governing
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein permission and limitations under the License.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User When distributing Covered Code, include this CDDL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein Header Notice in each file and include the License file
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein If applicable, add the following below the CDDL Header,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein with the fields enclosed by brackets [] replaced by
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews your own identifying information:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein "Portions Copyrighted [year] [name of copyright owner]"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $Id: fedletEncode.jsp,v 1.1 2009/11/12 17:30:30 exu Exp $
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<%@page contentType="text/html; charset=UTF-8" %>
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews <title>Fedlet Encode</title>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <link rel="stylesheet" type="text/css" href="com_sun_web_ui/css/css_ns6up.css" />
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <link rel="shortcut icon" href="com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon" />
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<%@page import="com.sun.identity.security.EncodeAction,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein<body class="DefBdy">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <div class="SkpMedGry1"><a href="#SkipAnchor3860"><img src="com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1" /></a></div><div class="MstDiv">
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews <table class="MstTblBot" title="" border="0" cellpadding="0" cellspacing="0" width="100%">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <td class="MstTdTtl" width="99%">
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <div class="MstDivTtl"><img name="AMConfig.configurator.ProdName" src="console/images/PrimaryProductName.png" alt="OpenAM" border="0" /></div>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <td class="MstTdLogo" width="1%"><img name="AMConfig.configurator.BrandLogo" src="com_sun_web_ui/images/other/javalogo.gif" alt="Java(TM) Logo" border="0" height="55" width="31" /></td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <table class="MstTblEnd" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><img name="RMRealm.mhCommon.EndorserLogo" src="com_sun_web_ui/images/masthead/masthead-sunname.gif" alt="Sun(TM) Microsystems, Inc." align="right" border="0" height="10" width="108" /></td></tr></table>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <table class="SkpMedGry1" border="0" cellpadding="5" cellspacing="0" width="100%"><tr><td><img src="com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1" /></a></td></tr></table>
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User <table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td></td></tr></table>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein <table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ResourceBundle rb = null;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein rb = ResourceBundle.getBundle("libSAML2",request.getLocale());
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User if (rb == null) {
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein String strPwd = request.getParameter("password");
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User if ((strPwd != null) && (strPwd.trim().length() > 0)) {
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User out.println(rb.getString("result-encoded-pwd") + " ");
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User out.println((String) AccessController.doPrivileged(
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein new EncodeAction(strPwd.trim())));
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User out.println("<br /><br /><a href=\"fedletEncode.jsp\">" +
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein rb.getString("encode-another-pwd") + "</a>");
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein "<form name=\"frm\" action=\"fedletEncode.jsp\" method=\"post\">");
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic Updater out.println("<input type=\"text\" name=\"password\" />");
4cfb5ea3a5dd28477df37004d6345992d5f41a3fTinderbox User out.println("<input type=\"submit\" value=\"" +
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic Updater rb.getString("btn-encode") + "\" />");
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater } catch (Exception e) {
4cfb5ea3a5dd28477df37004d6345992d5f41a3fTinderbox User out.println(rb.getString("failed-to-encode"));
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein</td></tr></table>
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein</body></html>