I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 582bab7c authored by zzz's avatar zzz
Browse files

minor cleanups

parent 5f903cc7
No related branches found
No related tags found
No related merge requests found
package net.i2p.router.web.helpers; package net.i2p.router.web.helpers;
import net.i2p.data.Base32;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.Hash; import net.i2p.data.Hash;
import net.i2p.data.SessionKey; import net.i2p.data.SessionKey;
...@@ -40,8 +39,7 @@ public class ConfigKeyringHandler extends FormHandler { ...@@ -40,8 +39,7 @@ public class ConfigKeyringHandler extends FormHandler {
addFormError(_t("Invalid key")); addFormError(_t("Invalid key"));
} else { } else {
_context.keyRing().put(h, sk); _context.keyRing().put(h, sk);
addFormNotice(_t("Key for {0} added to keyring", addFormNotice(_t("Key for {0} added to keyring", h.toBase32()));
Base32.encode(h.getData()) + ".b32.i2p"));
} }
} else { // Delete } else { // Delete
if (h != null && h.getData() != null) { if (h != null && h.getData() != null) {
...@@ -49,11 +47,9 @@ public class ConfigKeyringHandler extends FormHandler { ...@@ -49,11 +47,9 @@ public class ConfigKeyringHandler extends FormHandler {
// don't bother translating // don't bother translating
addFormError("Cannot remove key for local destination. Disable encryption in the Hidden Services Manager."); addFormError("Cannot remove key for local destination. Disable encryption in the Hidden Services Manager.");
} else if (_context.keyRing().remove(h) != null) { } else if (_context.keyRing().remove(h) != null) {
addFormNotice(_t("Key for {0} removed from keyring", addFormNotice(_t("Key for {0} removed from keyring", h.toBase32()));
Base32.encode(h.getData()) + ".b32.i2p"));
} else { } else {
addFormNotice(_t("Key for {0} not found in keyring", addFormNotice(_t("Key for {0} not found in keyring", h.toBase32()));
Base32.encode(h.getData()) + ".b32.i2p"));
} }
} else { } else {
addFormError(_t("Invalid destination")); addFormError(_t("Invalid destination"));
......
...@@ -4,7 +4,6 @@ import java.io.IOException; ...@@ -4,7 +4,6 @@ import java.io.IOException;
import java.io.StringWriter; import java.io.StringWriter;
import java.util.Map; import java.util.Map;
import net.i2p.data.Base32;
import net.i2p.data.Destination; import net.i2p.data.Destination;
import net.i2p.data.Hash; import net.i2p.data.Hash;
import net.i2p.data.SessionKey; import net.i2p.data.SessionKey;
...@@ -51,7 +50,7 @@ public class ConfigKeyringHelper extends HelperBase { ...@@ -51,7 +50,7 @@ public class ConfigKeyringHelper extends HelperBase {
if (local != _context.clientManager().isLocal(h)) if (local != _context.clientManager().isLocal(h))
continue; continue;
buf.append("\n<tr><td>"); buf.append("\n<tr><td>");
buf.append(Base32.encode(h.getData())).append(".b32.i2p"); buf.append(h.toBase32());
buf.append("</td><td>"); buf.append("</td><td>");
Destination dest = _context.netDb().lookupDestinationLocally(h); Destination dest = _context.netDb().lookupDestinationLocally(h);
if (dest != null && local) { if (dest != null && local) {
......
...@@ -14,7 +14,7 @@ Helpers usually extend HelperBase, and Handlers usually extend FormHandler. ...@@ -14,7 +14,7 @@ Helpers usually extend HelperBase, and Handlers usually extend FormHandler.
</p><p> </p><p>
This package was created in release 0.9.33 by moving This package was created in release 0.9.33 by moving
these classes from net.i2p.router.web to here, these classes from net.i2p.router.web to here,
and moving them from routerconsole.war to routerconsole.jar. and moving them from routerconsole.jar to routerconsole.war.
</p><p> </p><p>
No classes contained here are part of a public API. No classes contained here are part of a public API.
Subject to change. Subject to change.
......
...@@ -16,7 +16,7 @@ The base classes are in this package, but most Helpers, Handlers, and Renderers ...@@ -16,7 +16,7 @@ The base classes are in this package, but most Helpers, Handlers, and Renderers
</p><p> </p><p>
This package was split in release 0.9.33, with most of the helpers and handlers This package was split in release 0.9.33, with most of the helpers and handlers
moved to net.i2p.router.web.console, moved to net.i2p.router.web.console,
and moving them from routerconsole.war to routerconsole.jar. and moving them from routerconsole.jar to routerconsole.war.
</p><p> </p><p>
No classes contained here are part of a public API. No classes contained here are part of a public API.
Subject to change. Subject to change.
......
...@@ -55,7 +55,6 @@ class MailPart { ...@@ -55,7 +55,6 @@ class MailPart {
*/ */
public final String uidl; public final String uidl;
/// todo add UIDL to constructors, use in WebMail.showpart()
public MailPart(String uidl, ReadBuffer readBuffer) throws DecodingException public MailPart(String uidl, ReadBuffer readBuffer) throws DecodingException
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment