On Tue, Apr 14, 2009 at 6:49 PM, <saces at freenetproject.org> wrote: > Author: saces > Date: 2009-04-14 10:49:50 +0000 (Tue, 14 Apr 2009) > New Revision: 26777 > > Modified: > ? trunk/plugins/KeyExplorer/KeyExplorer.java > Log: > add a sanitizeURI, remove metas (useless here) and convert USK to underlaying > SSK > > Modified: trunk/plugins/KeyExplorer/KeyExplorer.java > =================================================================== > --- trunk/plugins/KeyExplorer/KeyExplorer.java ?2009-04-14 10:03:09 UTC (rev > 26776) > +++ trunk/plugins/KeyExplorer/KeyExplorer.java ?2009-04-14 10:49:50 UTC (rev > 26777) [...] > + ? ? ? ? ? ? ? // turn USK into SSK > + ? ? ? ? ? ? ? if (tempURI.isUSK()) { > + ? ? ? ? ? ? ? ? ? ? ? if (errors != null) { > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? USK tempUSK = USK.create(tempURI); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ClientKey tempKey = tempUSK.getSSK(); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tempURI = tempKey.getURI();
tempURI = tempURI.sskForUSK() and save one USK object. > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? errors.add("URI was an USK, converted it to > SSK for you"); > + ? ? ? ? ? ? ? ? ? ? ? } else {