|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.message.GarlicConfig
class GarlicConfig
Define the contents of a garlic chunk that contains 1 or more sub garlics
Constructor Summary | |
---|---|
GarlicConfig()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GarlicConfig()
Method Detail |
---|
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()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |