Package | Description |
---|---|
net.i2p.router.message |
Creates and parses garlic messages.
|
Modifier and Type | Class and Description |
---|---|
class |
PayloadGarlicConfig
Garlic config for a single clove, containing an I2NP message and no sub-cloves.
|
Modifier and Type | Method and Description |
---|---|
GarlicConfig |
PayloadGarlicConfig.getClove(int index) |
GarlicConfig |
GarlicConfig.getClove(int index) |
Modifier and Type | Method and Description |
---|---|
void |
PayloadGarlicConfig.addClove(GarlicConfig config) |
void |
GarlicConfig.addClove(GarlicConfig config)
Add a clove to the current message - if any cloves are added, an I2NP message
cannot be specified via setPayload.
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
int numTagsToDeliver,
int lowTagsThreshold,
SessionKeyManager skm)
called by netdb and above
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
int numTagsToDeliver,
SessionKeyManager skm)
called by OCMJH
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
PublicKey target,
SessionKey encryptKey,
SessionTag encryptTag)
used by TestJob and directly above
and for encrypting DatabaseLookupMessages
|
static GarlicMessage |
GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
SessionKeyManager skm)
Now unused, since we have to generate a reply token first in OCMOSJ but we don't know if tags are required yet.
|
Constructor and Description |
---|
GarlicConfig(List<GarlicConfig> cloveConfigs) |