net.i2p.router.tunnel
Class BloomFilterIVValidator

java.lang.Object
  extended bynet.i2p.router.tunnel.BloomFilterIVValidator
All Implemented Interfaces:
IVValidator

public class BloomFilterIVValidator
extends java.lang.Object
implements IVValidator

Manage the IV validation for all of the router's tunnels by way of a big decaying bloom filter.


Constructor Summary
BloomFilterIVValidator(I2PAppContext ctx, int KBps)
           
 
Method Summary
 void destroy()
           
 boolean receiveIV(byte[] iv)
          receive the IV for the tunnel, returning true if it is valid, or false if it has already been used (or is otherwise invalid).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BloomFilterIVValidator

public BloomFilterIVValidator(I2PAppContext ctx,
                              int KBps)
Method Detail

receiveIV

public boolean receiveIV(byte[] iv)
Description copied from interface: IVValidator
receive the IV for the tunnel, returning true if it is valid, or false if it has already been used (or is otherwise invalid).

Specified by:
receiveIV in interface IVValidator

destroy

public void destroy()