DVMemorySecondFactorStore class
Second factors in process memory.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
advanceTotpStep(
String userId, int step) → Future< bool> -
Spends
stepif it is later than the last one spent. Returns whether it was — false is a replay, or a concurrent request that spent it first.override -
confirmTotp(
String userId, int step) → Future< bool> -
Marks the pending enrollment confirmed and spends
step, if it is still pending. Returns whether it was.override -
consumeRecoveryCode(
String userId, String hash) → Future< bool> -
Deletes the code with
hash. Returns whether it existed, so a code can be spent once even by two requests racing for it.override -
debugRows(
) → Future< List< Map< >String, Object?> > -
Stored rows as held, for tests proving what is written down.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putPendingTotp(
DVTotpRecord record) → Future< void> -
Stores a pending enrollment, replacing any pending one for the user.
override
-
recoveryCodes(
String userId) → Future< List< DVRecoveryCodeRecord> > -
override
-
removeTotp(
String userId) → Future< void> -
override
-
replaceRecoveryCodes(
String userId, List< DVRecoveryCodeRecord> records) → Future<void> -
Replaces every recovery code the user has.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
totp(
String userId) → Future< DVTotpRecord?> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited