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>
class Token extends ByteArray
Used for Both outgoing and incoming tokens- Since:
- 0.9.2
- Author:
- zzz
-
-
Constructor Summary
Constructors Constructor Description Token(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)
-
-
-
Constructor Detail
-
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
-
-