createGarlicMessage
static GarlicMessage createGarlicMessage(RouterContext ctx,
long replyToken,
long expiration,
PublicKey recipientPK,
PayloadGarlicConfig dataClove,
Hash from,
Destination dest,
TunnelInfo replyTunnel,
int tagsToSendOverride,
int lowTagsOverride,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
boolean requireAck,
LeaseSet bundledReplyLeaseSet)
Allow the app to specify the data clove directly, which enables OutboundClientMessage to resend the
same payload (including expiration and unique id) in different garlics (down different tunnels)
This is called from OCMOSJ
- Parameters:
tagsToSendOverride
- if > 0, use this instead of skm's default
lowTagsOverride
- if > 0, use this instead of skm's default
wrappedKey
- output parameter that will be filled with the sessionKey used
wrappedTags
- output parameter that will be filled with the sessionTags used
replyTunnel
- non-null if requireAck is true or bundledReplyLeaseSet is non-null
requireAck
- if true, bundle replyToken in an ack clove
bundledReplyLeaseSet
- may be null; if non-null, put it in a clove
- Returns:
- garlic, or null if no tunnels were found (or other errors)