final class VerificationWindow (View source)

Limits clock-skew acceptance around the current time-step to a small fixed maximum.

Constants

MAXIMUM_STEPS_PER_DIRECTION

Methods

__construct(int $pastSteps = 1, int $futureSteps = 1)

Defines the permitted earlier and later steps; each direction is independently bounded at two.

Details

__construct

__construct(int $pastSteps = 1, int $futureSteps = 1)

Defines the permitted earlier and later steps; each direction is independently bounded at two.

The framework bounds verification work and clock skew here, while the host chooses a value within that bound.

Parameters

int $pastSteps
int $futureSteps

Exceptions

InvalidTotpConfigurationException