Package org.klomp.snark.dht
Class Token
java.lang.Object
net.i2p.data.ByteArray
org.klomp.snark.dht.Token
- All Implemented Interfaces:
Serializable
,Comparable<ByteArray>
Used for Both outgoing and incoming tokens
- Since:
- 0.9.2
- Author:
- zzz
-
Constructor Summary
ConstructorDescriptionToken
(byte[] data) incoming - for lookup only, not storage, lastSeen is 0Token
(I2PAppContext ctx) outgoing - generate a random tokenToken
(I2PAppContext ctx, byte[] data) incoming - save the token (arbitrary length) -
Method Summary