Package net.i2p.router.crypto.ratchet
Interface RatchetPayload.PayloadCallback
-
- Enclosing class:
- RatchetPayload
public static interface RatchetPayload.PayloadCallbackFor all callbacks, recommend throwing exceptions only from the handshake. Exceptions will get thrown out of processPayload() and prevent processing of succeeding blocks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgotDateTime(long time)voidgotGarlic(GarlicClove clove)voidgotNextKey(NextSessionKey nextKey)voidgotOptions(byte[] options, boolean isHandshake)voidgotPadding(int paddingLength, int frameLength)For stats.voidgotTermination(int reason, long lastReceived)voidgotUnknown(int type, int len)
-
-
-
Method Detail
-
gotDateTime
void gotDateTime(long time) throws DataFormatException- Throws:
DataFormatException
-
gotGarlic
void gotGarlic(GarlicClove clove)
-
gotOptions
void gotOptions(byte[] options, boolean isHandshake) throws DataFormatException- Parameters:
isHandshake- true only for message 3 part 2- Throws:
DataFormatException
-
gotTermination
void gotTermination(int reason, long lastReceived)- Parameters:
lastReceived- in theory could wrap around to negative, but very unlikely
-
gotNextKey
void gotNextKey(NextSessionKey nextKey)
- Parameters:
nextKey- the next one
-
gotPadding
void gotPadding(int paddingLength, int frameLength)For stats.- Parameters:
paddingLength- the number of padding bytes, not including the 3-byte block headerframeLength- the total size of the frame, including all blocks and block headers
-
gotUnknown
void gotUnknown(int type, int len)
-
-