class GarlicConfig extends Object
Modifier | Constructor and Description |
---|---|
|
GarlicConfig() |
protected |
GarlicConfig(List<GarlicConfig> cloveConfigs) |
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() |
GarlicConfig |
getClove(int index) |
int |
getCloveCount() |
DeliveryInstructions |
getDeliveryInstructions() |
long |
getExpiration() |
long |
getId() |
RouterInfo |
getRecipient() |
PublicKey |
getRecipientPublicKey() |
protected String |
getSubData() |
void |
setCertificate(Certificate cert)
Certificate for the getRecipient() to pay for their processing
|
void |
setDeliveryInstructions(DeliveryInstructions instructions)
Specify how the I2NPMessage in the clove should be handled.
|
void |
setExpiration(long expiration)
Expiration of the clove, after which it should be dropped
|
void |
setId(long id)
Unique ID of the clove
|
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()
protected GarlicConfig(List<GarlicConfig> cloveConfigs)
public void setRecipient(RouterInfo info)
public RouterInfo getRecipient()
public void setRecipientPublicKey(PublicKey recipientPublicKey)
public PublicKey getRecipientPublicKey()
public void setCertificate(Certificate cert)
public Certificate getCertificate()
public void setId(long id)
public long getId()
public void setExpiration(long expiration)
public long getExpiration()
public void setDeliveryInstructions(DeliveryInstructions instructions)
public DeliveryInstructions getDeliveryInstructions()
public void addClove(GarlicConfig config)
public int getCloveCount()
public GarlicConfig getClove(int index)
public void clearCloves()
protected String getSubData()