net.i2p.router.message
Class GarlicMessageParser

java.lang.Object
  extended by net.i2p.router.message.GarlicMessageParser

public class GarlicMessageParser
extends Object

Read a GarlicMessage, decrypt it, and return the resulting CloveSet. Thread-safe, does not contain any state. Public as it's now in the RouterContext.


Constructor Summary
GarlicMessageParser(I2PAppContext context)
           
 
Method Summary
 CloveSet getGarlicCloves(GarlicMessage message, PrivateKey encryptionKey, SessionKeyManager skm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GarlicMessageParser

public GarlicMessageParser(I2PAppContext context)
Method Detail

getGarlicCloves

public CloveSet getGarlicCloves(GarlicMessage message,
                                PrivateKey encryptionKey,
                                SessionKeyManager skm)
Parameters:
skm - use tags from this session key manager
Returns:
null on error