ApiKeyManager class
APIKeyManager class
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
-
generateApiKey(
{DateTime? expiresAt}) → ApiKey - Generates a new API key, optionally with an expiration date, and adds it to the set of managed API keys.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeApiKey(
String key) → void -
Revokes the API key with the given
key
. -
toString(
) → String -
A string representation of this object.
inherited
-
validateApiKey(
String key) → bool - Checks if an API key is valid and not expired.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited