Foundry.SecretService¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.SecretService(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Manages secure storage and retrieval of API keys and sensitive data.
Foundry.SecretServiceprovides a secure interface for storing and retrieving API keys, authentication tokens, and other sensitive information. It integrates with the system’s secret storage backend and provides a unified API for managing credentials across different services and platforms.- check_expires_at(host, service)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a
GLib.DateTimeon success; or rejects with error.- Return type:
Checks when the API key expires for the host/service pair.
New in version 1.1.
- delete_api_key(host, service)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to any value on success or rejects with error.
- Return type:
Removes an API key from secret storage.
New in version 1.1.
- lookup_api_key(host, service)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to a string on success or rejects with error.
- Return type:
Retrieves an API key from secret storage.
New in version 1.1.
- rotate_api_key(host, service, expire_at)¶
- Parameters:
host (
str) – the hostname of the api serverservice (
str) – the name of the service such as “gitlab”expire_at (
GLib.DateTimeorNone) – when the new key should expire, orNone
- Returns:
a [class`Dex`.Future] that resolves to the new API key as a string on success; or rejects with error.
- Return type:
Rotates the API key for the host/service pair.
New in version 1.1.
- store_api_key(host, service, api_key)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves to any value on success or rejects with error.
- Return type:
Stores an API key in secret storage.
New in version 1.1.