%@page contentType="text/html"%>
<%@page trimDirectiveWhitespaces="true"%>
<%@page pageEncoding="UTF-8"%>
<%
/*
* Do not tag this file for translation.
*/
%>
I2P Router Console - Debug
<%@include file="css.jsi" %>
<%@include file="summaryajax.jsi" %>
<%@include file="summary.jsi" %>
Router SKM
<%
/*
* Quick and easy place to put debugging stuff
*/
net.i2p.router.RouterContext ctx = (net.i2p.router.RouterContext) net.i2p.I2PAppContext.getGlobalContext();
/*
* Print out the status for all the SessionKeyManagers
*/
ctx.sessionKeyManager().renderStatusHTML(out);
java.util.Set clients = ctx.clientManager().listClients();
for (net.i2p.data.Destination dest : clients) {
net.i2p.data.Hash h = dest.calculateHash();
net.i2p.crypto.SessionKeyManager skm = ctx.clientManager().getClientSessionKeyManager(h);
if (skm != null) {
out.print("" + h.toBase64().substring(0,6) + " SKM
");
skm.renderStatusHTML(out);
}
}
%>