AuthTwoFactorAttemptPolicy class

Attempt and lockout policy evaluated inside an atomic command.

Constructors

AuthTwoFactorAttemptPolicy({required DateTime now, required int maxAttempts, required Duration lockoutDuration})
Creates the time and lockout parameters for an atomic command.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
lockoutDuration → Duration
Duration of a lockout after the attempt limit is reached.
final
maxAttempts → int
Number of failed attempts permitted before lockout.
final
now → DateTime
Time at which the command evaluates the attempt.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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