ApiKeyInfoDatasource class
Constructors
- ApiKeyInfoDatasource(DbService _dbService, String encrypterSecretKey)
Properties
- encrypterSecretKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptApiSecret(
String apiHash) → Future< String> -
deleteApiKey(
String hash) → Future< void> -
generateApiKey(
String name, {required Duration? expireAfter}) → Future< ApiHashModel> -
getApiModel(
String apiHash) → Future< ApiHashModel?> -
listApiKeys(
) → Future< List< ApiHashModel> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveHashModel(
ApiHashModel model) → Future< void> -
toggleApiKeyActiveness(
String apiHash) → Future< ApiHashModel> -
toString(
) → String -
A string representation of this object.
inherited
-
updateApiKey(
ApiHashModel newModel) → Future< ApiHashModel>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited