| Package | Description |
|---|---|
| net.i2p.router.message | Garlic message creation, parsing, and source routing for I2P communications. |
| Modifier and Type | Class and Description |
|---|---|
class | PayloadGarlicConfigA GarlicConfig that holds a single I2NPMessage payload with no sub-cloves. |
| Modifier and Type | Method and Description |
|---|---|
GarlicConfig | PayloadGarlicConfig.getClove(int index)Not supported for single-clove configs. |
GarlicConfig | GarlicConfig.getClove(int index)Returns the clove at the specified index |
| Modifier and Type | Method and Description |
|---|---|
void | PayloadGarlicConfig.addClove(GarlicConfig config)Not supported for single-clove configs. |
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.buildECIESMessage(RouterContext ctx,
GarlicConfig config)Encrypt from an anonymous source. |
(package private) static GarlicMessage | GarlicMessageBuilder.buildECIESMessage(RouterContext ctx,
GarlicConfig config,
Hash from,
Destination to,
SessionKeyManager skm,
ReplyCallback callback)ECIES_X25519 and PQ only. |
static GarlicMessage | GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey encryptKey,
RatchetSessionTag encryptTag)Ratchet only. |
static GarlicMessage | GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
int numTagsToDeliver,
int lowTagsThreshold,
SessionKeyManager skm)ELGAMAL_2048 only. |
static GarlicMessage | GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
int numTagsToDeliver,
SessionKeyManager skm)ELGAMAL_2048 only
Called by OCMJH |
static GarlicMessage | GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
SessionKeyManager skm)ELGAMAL_2048 only. |
static GarlicMessage | GarlicMessageBuilder.buildMessage(RouterContext ctx,
GarlicConfig config,
Set<SessionTag> wrappedTags,
PublicKey target,
SessionKey encryptKey,
SessionTag encryptTag)ELGAMAL_2048 only. |
| Constructor and Description |
|---|
GarlicConfig(List<GarlicConfig> cloveConfigs,
Certificate cert,
long id,
long expiration,
DeliveryInstructions di)Creates a new GarlicConfig with existing clove configs |