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 SessionKeyAndNonceconsume(RatchetSessionTag tag)inbound onlyintremaining()tags remainingintsize()unused tags generatedStringtoString()-
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: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
public SessionKeyAndNonce consume(RatchetSessionTag tag)
Description copied from class:RatchetTagSetinbound only- Overrides:
consumein classRatchetTagSet- Returns:
- associated SessionKey or null if not found.
-
toString
public String toString()
- Overrides:
toStringin classRatchetTagSet
-
-