Author: toad
Date: 2007-06-12 19:59:23 +0000 (Tue, 12 Jun 2007)
New Revision: 13539

Modified:
   trunk/freenet/src/freenet/keys/Key.java
Log:
Missed a file

Modified: trunk/freenet/src/freenet/keys/Key.java
===================================================================
--- trunk/freenet/src/freenet/keys/Key.java     2007-06-12 19:50:18 UTC (rev 
13538)
+++ trunk/freenet/src/freenet/keys/Key.java     2007-06-12 19:59:23 UTC (rev 
13539)
@@ -249,4 +249,11 @@
     public byte[] getKeyBytes() {
        return routingKey;
     }
+
+       public static ClientKeyBlock createKeyBlock(ClientKey key, KeyBlock 
block) throws KeyVerifyException {
+               if(key instanceof ClientSSK)
+                       return new ClientSSKBlock((SSKBlock)block, 
(ClientSSK)key);
+               else //if(key instanceof ClientCHK
+                       return new ClientCHKBlock((CHKBlock)block, 
(ClientCHK)key);
+       }
 }


Reply via email to