Package net.messagevortex.accounting
Interface HeaderVerifier
- All Known Subinterfaces:
Accountant
- All Known Implementing Classes:
DummyAccountant
public interface HeaderVerifier
Interface for an Accountant to verify the header for further processing.
-
Method Summary
Modifier and TypeMethodDescriptionintchecks the given IdentityBlock for validity of processing.
-
Method Details
-
verifyHeaderForProcessing
checks the given IdentityBlock for validity of processing.
One of the following criteria must be met:
- The identity is known and the serial has not yet reached its replay limit and is not replayed too early
- The identity is not known but has a RequestIdentityBlock
- The IdentityBlock is not known but has a request capability block
- Parameters:
header- the header to be verified- Returns:
- the maximum nuber of bytes allowed for processing
-