Foundry.KeyRotator¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.KeyRotator(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for rotating API keys.
Foundry.KeyRotatorprovides an interface for rotating API keys associated with a host and service name. Subclasses implement the actual rotation logic for specific services or providers.New in version 1.1.
- can_rotate(host, service_name, secret)¶
- Parameters:
- Returns:
- Return type:
Checks if the key rotator can rotate the API key for the given host and service name.
New in version 1.1.
- check_expires_at(host, service_name, secret)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a
GLib.DateTimeor rejects with error.- Return type:
Checks when the key expires by querying the service.
New in version 1.1.
- rotate(host, service_name, secret, expire_at)¶
- Parameters:
- Returns:
a
Dex.Futurethat resolves to a string containing the replacement secret, or rejects with an error- Return type:
Rotates the API key for the given host and service name.
New in version 1.1.
- do_can_rotate(host, service_name, secret) virtual¶
- Parameters:
- Returns:
- Return type:
Checks if the key rotator can rotate the API key for the given host and service name.
New in version 1.1.
- do_check_expires_at(host, service_name, secret) virtual¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a
GLib.DateTimeor rejects with error.- Return type:
Checks when the key expires by querying the service.
New in version 1.1.
- do_rotate(host, service_name, secret, expire_at) virtual¶
- Parameters:
- Returns:
a
Dex.Futurethat resolves to a string containing the replacement secret, or rejects with an error- Return type:
Rotates the API key for the given host and service name.
New in version 1.1.