source: apps/routerconsole/jsp/configkeyring.jsp @ b8437cd

Last change on this file since b8437cd was b8437cd, checked in by zzz <zzz@…>, 2 years ago

Console: Catch ISE in get/setAttribute() (ticket #1529)

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[8d891b99]1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
[4f492e3]5<html><head>
[88dbd77]6<%@include file="css.jsi" %>
[a5cd0bd]7<%=intl.title("config keyring")%>
[420bf85]8<script src="/js/ajax.js" type="text/javascript"></script>
[744930a]9<%@include file="summaryajax.jsi" %>
[420bf85]10</head><body onload="initAjax()">
[8d891b99]11
[88dbd77]12<%@include file="summary.jsi" %>
[22b9876]13<h1><%=intl._t("I2P Keyring Configuration")%></h1>
[62437ac]14<div class="main" id="config_keyring">
[88dbd77]15 <%@include file="confignav.jsi" %>
[abf7296]16
[9b2a85d]17 <jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHandler" id="formhandler" scope="request" />
[42973983]18<%@include file="formhandler.jsi" %>
[9b2a85d]19 <jsp:useBean class="net.i2p.router.web.helpers.ConfigKeyringHelper" id="keyringhelper" scope="request" />
[b8437cd]20 <jsp:setProperty name="keyringhelper" property="contextId" value="<%=i2pcontextId%>" />
[44a2700]21<p id="keyringhelp" class="infohelp">
[22b9876]22 <%=intl._t("The router keyring is used to decrypt encrypted leaseSets.")%>
23 <%=intl._t("The keyring may contain keys for local or remote encrypted destinations.")%></p>
[abf7296]24 <jsp:getProperty name="keyringhelper" property="summary" />
[166f378]25 <form action="" method="POST">
[42973983]26 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
[44a2700]27 <h3 class="tabletitle"><%=intl._t("Manual Keyring Addition")%></h3>
28 <table id="addkeyring">
29        <tr>
30          <td class="infohelp" colspan="2">
[22b9876]31 <%=intl._t("Enter keys for encrypted remote destinations here.")%>
[2a30bfe]32<%
33    net.i2p.util.PortMapper pm = net.i2p.I2PAppContext.getGlobalContext().portMapper();
34    if (pm.isRegistered(net.i2p.util.PortMapper.SVC_I2PTUNNEL)) {
35%>
[22b9876]36 <%=intl._t("Keys for local destinations must be entered on the")%> <a href="i2ptunnel/"><%=intl._t("I2PTunnel page")%></a>.
[2a30bfe]37<%  }  %>
[44a2700]38          </td>
39        </tr><tr>
[dc13ed6]40          <td align="right"><b><%=intl._t("Full destination, name, base 32, or hash")%>:</b></td>
[bb39d8c6]41          <td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off" spellcheck="false"></textarea></td>
[35da3f3]42        </tr><tr>
[6b056ce]43          <td align="right"><b><%=intl._t("Encryption Key")%>:</b></td>
[2a92be59]44          <td><input type="text" size="55" name="key" ></td>
[35da3f3]45        </tr><tr>
[2a92be59]46          <td align="right" colspan="2">
[22b9876]47<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
48<input type="submit" name="action" class="delete" value="<%=intl._t("Delete key")%>" >
49<input type="submit" name="action" class="add" value="<%=intl._t("Add key")%>" >
[44a2700]50</td></tr></table></form></div></body></html>
Note: See TracBrowser for help on using the repository browser.