java.lang.Object
net.i2p.router.networkdb.kademlia.MessageWrapper.OneTimeSession
- Enclosing class:
MessageWrapper
A single key and tag, for receiving a single message.
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SessionKeyElG or ratchet.final RatchetSessionTagNon-null for ratchet.final SessionTagNon-null for ElG.Constructor Summary
ConstructorsConstructorDescriptionOneTimeSession(SessionKey key, SessionTag tag) Builds an ElGamal session, leaving the ratchet tag null.OneTimeSession(SessionKey key, RatchetSessionTag tag) Creates a new one-time session with a ratchet tag.Method Summary
Field Details
key
ElG or ratchet.tag
Non-null for ElG.rtag
Non-null for ratchet.
Constructor Details
OneTimeSession
Builds an ElGamal session, leaving the ratchet tag null.- Parameters:
key- the session keytag- the session tag for ElGamal
OneTimeSession
Creates a new one-time session with a ratchet tag.- Parameters:
key- the session keytag- the ratchet session tag