Package net.i2p.router.crypto.ratchet
Class SingleTagSet
java.lang.Object
net.i2p.router.crypto.ratchet.RatchetTagSet
net.i2p.router.crypto.ratchet.SingleTagSet
- All Implemented Interfaces:
TagSetHandle
Inbound ES tagset with a single tag and key.
Nonce is 0.
For receiving DSM/DSRM replies.
- Since:
- 0.9.46
-
Field Summary
Fields inherited from class net.i2p.router.crypto.ratchet.RatchetTagSet
_key, DEBUG_IB_NSR, DEBUG_OB_NSR, DEBUG_SINGLE_ES
-
Constructor Summary
ConstructorDescriptionSingleTagSet
(SessionTagListener lsnr, SessionKey key, RatchetSessionTag tag, long date, long timeout) For outbound Existing Session -
Method Summary
Modifier and TypeMethodDescriptionconsume
(RatchetSessionTag tag) inbound onlyint
tags remainingint
size()
unused tags generatedtoString()
Methods inherited from class net.i2p.router.crypto.ratchet.RatchetTagSet
clear, consumeNext, consumeNextKey, getAcked, getAssociatedKey, getCreated, getDate, getDebugID, getExpiration, getHandshakeState, getID, getNextKey, getNextKeys, getNextRootKey, getRemoteKey, getTimeout, setDate
-
Constructor Details
-
SingleTagSet
public SingleTagSet(SessionTagListener lsnr, SessionKey key, RatchetSessionTag tag, long date, long timeout) For outbound Existing Session
-
-
Method Details
-
size
public int size()Description copied from class:RatchetTagSet
unused tags generated- Overrides:
size
in classRatchetTagSet
- Returns:
- 0 for outbound
-
remaining
public int remaining()Description copied from class:RatchetTagSet
tags remaining- Overrides:
remaining
in classRatchetTagSet
- Returns:
- 0 - 65536
-
consume
Description copied from class:RatchetTagSet
inbound only- Overrides:
consume
in classRatchetTagSet
- Returns:
- associated SessionKey or null if not found.
-
toString
- Overrides:
toString
in classRatchetTagSet
-