|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.datagram.I2PDatagramDissector
public final class I2PDatagramDissector
Class for dissecting I2P repliable datagrams, checking the authenticity of the sender. Note that objects of this class are NOT THREAD SAFE!
Constructor Summary | |
---|---|
I2PDatagramDissector()
Crate a new I2P repliable datagram dissector. |
Method Summary | |
---|---|
byte[] |
extractPayload()
Extract the payload carried by an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), without verifying the datagram signature. |
Destination |
extractSender()
Extract the sender of an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), without verifying the datagram signature. |
byte[] |
getPayload()
Get the payload carried by an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), verifying the datagram signature. |
Destination |
getSender()
Get the sender of an I2P repliable datagram (previously loaded with the loadI2PDatagram() method), verifying the datagram signature. |
void |
loadI2PDatagram(byte[] dgram)
Load an I2P repliable datagram into the dissector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I2PDatagramDissector()
Method Detail |
---|
public void loadI2PDatagram(byte[] dgram) throws DataFormatException
dgram
- I2P repliable datagram to be loader
DataFormatException
- If there's an error in the datagram formatpublic byte[] getPayload() throws I2PInvalidDatagramException
I2PInvalidDatagramException
- if the signature verification failspublic Destination getSender() throws I2PInvalidDatagramException
I2PInvalidDatagramException
- if the signature verification failspublic byte[] extractPayload()
public Destination extractSender()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |