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
ConstructorsConstructorDescriptionSingleTagSet(SessionTagListener lsnr, SessionKey key, RatchetSessionTag tag, long date, long timeout) For outbound Existing Session -
Method Summary
Modifier and TypeMethodDescriptionconsume(RatchetSessionTag tag) inbound onlyinttags remainingintsize()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:RatchetTagSetunused tags generated- Overrides:
sizein classRatchetTagSet- Returns:
- 0 for outbound
-
remaining
public int remaining()Description copied from class:RatchetTagSettags remaining- Overrides:
remainingin classRatchetTagSet- Returns:
- 0 - 65536
-
consume
Description copied from class:RatchetTagSetinbound only- Overrides:
consumein classRatchetTagSet- Returns:
- associated SessionKey or null if not found.
-
toString
- Overrides:
toStringin classRatchetTagSet
-