public final class MyReplayDetection
extends java.lang.Object
This class implements the replay detection based on a sliding window mechanism.
The sliding windows is represented a bit vector. Each bit in the bit vector stands for a message id,
whereas the specific message id = lower bound + bit position.
If a message ID is below the lower bound of the sliding window, it is reported as replay.
If a message ID is between the bounds of the sliding window, it is first checked, if teh corresponding bit is set.
In this case, the message ID is reported as replay.
Otherwise the bit is set and the window will be slided.
- Author:
- sk13