java.lang.Object
net.i2p.router.networkdb.kademlia.MessageWrapper.WrappedMessage
- Enclosing class:
MessageWrapper
Wrapper so that we can keep track of the key and tags for later notification to the SKM.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GarlicMessageThe wrapped GarlicMessage.private PublicKeyThe recipient's public key.private SessionKeyThe session key used for wrapping.private SessionKeyManagerThe session key manager used for wrapping.private TagSetHandleHandle for the delivered tags.Constructor Summary
ConstructorsConstructorDescriptionWrappedMessage(GarlicMessage msg, SessionKeyManager skm, PublicKey sentTo, SessionKey sentKey, TagSetHandle tsh) Wrapped message.Method Summary
All MethodsModifier and TypeMethodDescription(package private) voidacked()Delivered tags (if any) were acked.(package private) voidfail()Delivered tags (if any) were not acked.(package private) GarlicMessageThe wrapped I2NP message.
Field Details
msg
The wrapped GarlicMessage.skm
The session key manager used for wrapping.sentTo
The recipient's public key.sessionKey
The session key used for wrapping.tsh
Handle for the delivered tags.
Constructor Details
WrappedMessage
WrappedMessage(GarlicMessage msg, SessionKeyManager skm, PublicKey sentTo, SessionKey sentKey, TagSetHandle tsh) Wrapped message.- Parameters:
msg- the garlic message that was built, to be sent as-isskm- the session key manager that owns the session key, notified on ack or failuresentTo- the recipient's public key, used when reporting tagssentKey- the session key the tags were delivered under, or null if none were senttsh- handle for the delivered tags, or null if none were sent
Method Details
getMessage
GarlicMessage getMessage()The wrapped I2NP message.- Returns:
- the garlic message to hand to the transport for delivery
acked
void acked()Delivered tags (if any) were acked.fail
void fail()Delivered tags (if any) were not acked.