Package net.i2p.router.tunnel.pool
Class BuildMessageProcessor
java.lang.Object
net.i2p.router.tunnel.pool.BuildMessageProcessor
class BuildMessageProcessor extends Object
Receive the build message at a certain hop, decrypt its encrypted record,
read the enclosed tunnel request, decide how to reply, write the reply,
encrypt the reply record, and return a TunnelBuildMessage to forward on to
the next hop.
There is only one of these.
Instantiated by BuildHandler.
- Since:
- 0.9.51 moved to tunnel.pool package
-
Constructor Summary
Constructors Constructor Description BuildMessageProcessor(RouterContext ctx)
-
Method Summary
Modifier and Type Method Description BuildRequestRecord
decrypt(TunnelBuildMessage msg, Hash ourHash, PrivateKey privKey)
Decrypt the record targeting us, encrypting all of the other records with the included reply key and IV.
-
Constructor Details
-
Method Details
-
decrypt
Decrypt the record targeting us, encrypting all of the other records with the included reply key and IV. The original, encrypted record targeting us is removed from the request message (so that the reply can be placed in that position after going through the decrypted request record). Note that this layer-decrypts the build records in-place. Do not call this more than once for a given message.- Returns:
- the current hop's decrypted record or null on failure
-