Class Token

java.lang.Object
net.i2p.data.ByteArray
org.klomp.snark.dht.Token
All Implemented Interfaces:
Serializable, Comparable<ByteArray>

class Token
extends ByteArray
Used for Both outgoing and incoming tokens
Since:
0.9.2
Author:
zzz
  • Constructor Details

    • Token

      public Token​(I2PAppContext ctx)
      outgoing - generate a random token
    • Token

      public Token​(I2PAppContext ctx, byte[] data)
      incoming - save the token (arbitrary length)
    • Token

      public Token​(byte[] data)
      incoming - for lookup only, not storage, lastSeen is 0
  • Method Details