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
class SingleTagSet extends RatchetTagSet
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
Constructors Constructor Description SingleTagSet(SessionTagListener lsnr, SessionKey key, RatchetSessionTag tag, long date, long timeout)
For outbound Existing Session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionKeyAndNonce
consume(RatchetSessionTag tag)
inbound onlyint
remaining()
tags remainingint
size()
unused tags generatedString
toString()
-
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 Detail
-
SingleTagSet
public SingleTagSet(SessionTagListener lsnr, SessionKey key, RatchetSessionTag tag, long date, long timeout)
For outbound Existing Session
-
-
Method Detail
-
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
public SessionKeyAndNonce consume(RatchetSessionTag tag)
Description copied from class:RatchetTagSet
inbound only- Overrides:
consume
in classRatchetTagSet
- Returns:
- associated SessionKey or null if not found.
-
toString
public String toString()
- Overrides:
toString
in classRatchetTagSet
-
-