PlaintextAuthTwoFactorSecretProtector class final

A deliberately explicit protector for tests and ephemeral examples.

Do not use this implementation for durable production storage.

Implemented types

Constructors

PlaintextAuthTwoFactorSecretProtector()
Creates the intentionally unencrypted test protector.
const

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protect(String secret) String
Protects a raw TOTP secret before persistence.
override
reveal(String protectedSecret) String
Recovers a raw TOTP secret for verification.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited