TimestampOutOfToleranceException class final
The webhook-timestamp is further from the current time than the
verifier's tolerance, in the past or in the future.
This protects against replayed deliveries.
- Inheritance
-
- Object
- WebhookException
- WebhookVerificationException
- TimestampOutOfToleranceException
Constructors
- TimestampOutOfToleranceException({required DateTime timestamp, required DateTime now, required Duration tolerance})
- Creates the exception.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A description of the problem.
finalinherited
- now → DateTime
-
The current time when the delivery was checked.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The time from the
webhook-timestampheader.final - tolerance → Duration
-
The allowed difference between timestamp and now.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited