class GarlicConfig extends Object
Modifier | Constructor and Description |
---|---|
|
GarlicConfig(Certificate cert,
long id,
long expiration,
DeliveryInstructions di) |
protected |
GarlicConfig(List<GarlicConfig> cloveConfigs,
Certificate cert,
long id,
long expiration,
DeliveryInstructions di) |
Modifier and Type | Method and Description |
---|---|
void |
addClove(GarlicConfig config)
Add a clove to the current message - if any cloves are added, an I2NP message
cannot be specified via setPayload.
|
void |
clearCloves() |
Certificate |
getCertificate()
Certificate for the getRecipient() to pay for their processing
|
GarlicConfig |
getClove(int index) |
int |
getCloveCount() |
DeliveryInstructions |
getDeliveryInstructions()
Specify how the I2NPMessage in the clove should be handled.
|
long |
getExpiration()
Expiration of the clove, after which it should be dropped
|
long |
getId()
Unique ID of the clove
|
RouterInfo |
getRecipient() |
PublicKey |
getRecipientPublicKey() |
protected String |
getSubData() |
void |
setRecipient(RouterInfo info)
Router to receive and process this clove - the router that will open the
delivery instructions and decide what to do process it locally as an I2NPMessage,
forward it as an I2NPMessage to a router, forward it as an I2NPMessage to a Destination,
or forward it as an I2NPMessage to a tunnel.
|
void |
setRecipientPublicKey(PublicKey recipientPublicKey)
Public key of the router to receive and process this clove.
|
String |
toString() |
public GarlicConfig(Certificate cert, long id, long expiration, DeliveryInstructions di)
protected GarlicConfig(List<GarlicConfig> cloveConfigs, Certificate cert, long id, long expiration, DeliveryInstructions di)
public void setRecipient(RouterInfo info)
public RouterInfo getRecipient()
public void setRecipientPublicKey(PublicKey recipientPublicKey)
public PublicKey getRecipientPublicKey()
public Certificate getCertificate()
public long getId()
public long getExpiration()
public DeliveryInstructions getDeliveryInstructions()
public void addClove(GarlicConfig config)
public int getCloveCount()
public GarlicConfig getClove(int index)
public void clearCloves()
protected String getSubData()