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

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

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

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