45e9809aff7304721fddb95654901b32195c9c7avboxsync<%--
45e9809aff7304721fddb95654901b32195c9c7avboxsync DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync The contents of this file are subject to the terms
45e9809aff7304721fddb95654901b32195c9c7avboxsync of the Common Development and Distribution License
45e9809aff7304721fddb95654901b32195c9c7avboxsync (the License). You may not use this file except in
45e9809aff7304721fddb95654901b32195c9c7avboxsync compliance with the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync You can obtain a copy of the License at
45e9809aff7304721fddb95654901b32195c9c7avboxsync https://opensso.dev.java.net/public/CDDLv1.0.html or
45e9809aff7304721fddb95654901b32195c9c7avboxsync opensso/legal/CDDLv1.0.txt
45e9809aff7304721fddb95654901b32195c9c7avboxsync See the License for the specific language governing
45e9809aff7304721fddb95654901b32195c9c7avboxsync permission and limitations under the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync When distributing Covered Code, include this CDDL
45e9809aff7304721fddb95654901b32195c9c7avboxsync Header Notice in each file and include the License file
45e9809aff7304721fddb95654901b32195c9c7avboxsync at opensso/legal/CDDLv1.0.txt.
45e9809aff7304721fddb95654901b32195c9c7avboxsync If applicable, add the following below the CDDL Header,
45e9809aff7304721fddb95654901b32195c9c7avboxsync with the fields enclosed by brackets [] replaced by
45e9809aff7304721fddb95654901b32195c9c7avboxsync your own identifying information:
45e9809aff7304721fddb95654901b32195c9c7avboxsync "Portions Copyrighted [year] [name of copyright owner]"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync $Id: fedletEncode.jsp,v 1.1 2009/11/12 17:30:30 exu Exp $
45e9809aff7304721fddb95654901b32195c9c7avboxsync--%>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync<%@page contentType="text/html; charset=UTF-8" %>
45e9809aff7304721fddb95654901b32195c9c7avboxsync<html>
45e9809aff7304721fddb95654901b32195c9c7avboxsync<head>
45e9809aff7304721fddb95654901b32195c9c7avboxsync <title>Fedlet Encode</title>
45e9809aff7304721fddb95654901b32195c9c7avboxsync <link rel="stylesheet" type="text/css" href="com_sun_web_ui/css/css_ns6up.css" />
45e9809aff7304721fddb95654901b32195c9c7avboxsync <link rel="shortcut icon" href="com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon" />
45e9809aff7304721fddb95654901b32195c9c7avboxsync</head>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync<%@page import="com.iplanet.services.util.Crypt,
45e9809aff7304721fddb95654901b32195c9c7avboxsync java.util.ResourceBundle" %>
45e9809aff7304721fddb95654901b32195c9c7avboxsync<%@page import="com.sun.identity.security.EncodeAction,
45e9809aff7304721fddb95654901b32195c9c7avboxsync java.security.AccessController" %>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync<body class="DefBdy">
45e9809aff7304721fddb95654901b32195c9c7avboxsync <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">
45e9809aff7304721fddb95654901b32195c9c7avboxsync <table class="MstTblBot" title="" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="MstTdTtl" width="99%">
<div class="MstDivTtl"><img name="AMConfig.configurator.ProdName" src="console/images/PrimaryProductName.png" alt="OpenAM" border="0" /></div>
</td>
<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>
</tr>
</table>
<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>
</div>
<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>
<table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td></td></tr></table>
<table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td>
<%
ResourceBundle rb = null;
try {
request.setCharacterEncoding("UTF-8");
rb = ResourceBundle.getBundle("libSAML2",request.getLocale());
if (rb == null) {
rb = ResourceBundle.getBundle("libSAML2");
}
String strPwd = request.getParameter("password");
if ((strPwd != null) && (strPwd.trim().length() > 0)) {
out.println(rb.getString("result-encoded-pwd") + " ");
out.println((String) AccessController.doPrivileged(
new EncodeAction(strPwd.trim())));
out.println("<br /><br /><a href=\"fedletEncode.jsp\">" +
rb.getString("encode-another-pwd") + "</a>");
} else {
out.println(
"<form name=\"frm\" action=\"fedletEncode.jsp\" method=\"post\">");
out.println(rb.getString("prompt-pwd"));
out.println("<input type=\"text\" name=\"password\" />");
out.println("<input type=\"submit\" value=\"" +
rb.getString("btn-encode") + "\" />");
out.println("</form>");
}
} catch (Exception e) {
out.println(rb.getString("failed-to-encode"));
}
%>
</td></tr></table>
</body></html>