UserAuthenticationGenerator class

Generates a UserAuthentication and can also confirm if a password matches one generated by it.

Constructors

UserAuthenticationGenerator({required MethodEncryptDecrypt methodGenerator, required PasswordHasher passwordHasher})
methodGenerator used to generate the method field of generated UserAuthentications

Properties

hashCode int
The hash code for this object.
no setterinherited
methodGenerator MethodEncryptDecrypt
Used to generate the method field of generated UserAuthentications
final
passwordHasher PasswordHasher
Used to hash passwords in generateAuthentication
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

confirmAuthentication(UserAuthentication authentication, String basePassword) bool
Returns true if basePassword is confirmed by authentication
generateAuthentication(String basePassword, {int saltLength = 64}) UserAuthentication
Generates a UserAuthentication with the basePassword as the key to pass the authentication.
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