AuthUtility class
Exposes static utility methods for password, salt and API credential generation.
Use the liquidart auth
tool to generate API credentials.
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
-
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
Static Methods
-
generateAPICredentialPair(
String? clientID, String? secret, {String? redirectURI, int hashLength = 32, int hashRounds = 1000, Hash? hashFunction}) → AuthClient - A utility method to generate a ClientID and Client Secret Pair.
-
generatePasswordHash(
String password, String salt, {int hashRounds = 1000, int hashLength = 32, Hash? hashFunction}) → String - A utility method to generate a password hash using the PBKDF2 scheme.
-
generateRandomSalt(
{int hashLength = 32}) → String - A utility method to generate a random base64 salt.