public final class I2PDatagramMaker extends Object
| Constructor and Description |
|---|
I2PDatagramMaker()Construct a new I2PDatagramMaker that is null. |
I2PDatagramMaker(I2PSession session)Construct a new I2PDatagramMaker that will be able to create I2P
repliable datagrams going to be sent through the specified I2PSession. |
| Modifier and Type | Method and Description |
|---|---|
byte[] | makeI2PDatagram(byte[] payload)Make a repliable I2P datagram containing the specified payload. |
void | setI2PDatagramMaker(I2PSession session)Does NOT support LS2 offline keys! |
public I2PDatagramMaker()
public I2PDatagramMaker(I2PSession session)
session - I2PSession used to send I2PDatagrams throughIllegalArgumentException - if session has offline keyspublic byte[] makeI2PDatagram(byte[] payload)
payload - non-null Bytes to be contained in the I2P datagram.IllegalArgumentException - if payload is too bigIllegalStateException - if Destination signature type unsupportedpublic void setI2PDatagramMaker(I2PSession session)
session - I2PSession used to send I2PDatagrams throughIllegalArgumentException - if session has offline keys