DVApiKeyManagement class
Issues, lists, rotates and revokes the current organization's API keys.
Constructors
- DVApiKeyManagement(DVAuthAuthorization authorization)
-
const
Properties
-
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
-
issue(
{required Object? user, required String? actor, required List< String> scopes, Duration? expiresIn, String? name, String? ratePlan}) → Future<DVIssuedApiKey> -
Issues a key for the current organization.
useris asked about as the policy's user, andactoris recorded in Record History. The secret is on the result, once. -
list(
{required Object? user}) → Future< List< DVApiKey> > - The current organization's keys, revoked and expired ones included.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revoke(
String id, {required Object? user, required String? actor}) → Future< void> -
Revokes key
idof the current organization, at once. -
rotate(
String id, {required Object? user, required String? actor, Duration? overlap}) → Future< DVIssuedApiKey> -
Rotates key
idof the current organization, with an overlap. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited