public class PayloadGarlicConfig extends GarlicConfig
| Constructor and Description |
|---|
PayloadGarlicConfig(Certificate cert,
long id,
long expiration,
DeliveryInstructions di,
I2NPMessage message) |
| Modifier and Type | Method and Description |
|---|---|
void | addClove(GarlicConfig config)Not supported for single-clove configs. |
void | clearCloves()No-op for single-clove configs. |
GarlicConfig | getClove(int index)Not supported for single-clove configs. |
int | getCloveCount()Return zero, as this is a single-clove config. |
I2NPMessage | getPayload()Specify the I2NP message to be sent - if this is set, no other cloves can be included
in this block |
protected String | getSubData()Returns sub-data for toString |
getCertificate, getDeliveryInstructions, getExpiration, getId, getRecipient, getRecipientPublicKey, setRecipient, setRecipientPublicKey, toStringpublic PayloadGarlicConfig(Certificate cert, long id, long expiration, DeliveryInstructions di, I2NPMessage message)
cert - the certificateid - the message IDexpiration - the expiration timedi - the delivery instructionsmessage - the I2NP message payloadpublic void addClove(GarlicConfig config)
addClove in class GarlicConfigconfig - the clove config to addUnsupportedOperationException - alwayspublic void clearCloves()
clearCloves in class GarlicConfigpublic GarlicConfig getClove(int index)
getClove in class GarlicConfigindex - the indexUnsupportedOperationException - alwayspublic int getCloveCount()
getCloveCount in class GarlicConfigpublic I2NPMessage getPayload()
protected String getSubData()
GarlicConfiggetSubData in class GarlicConfig