Secret.Retrievable¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Item attributes |
||
r/w |
Item creation date |
||
r/w |
Item label |
||
r/w |
Item modified date |
Signals¶
None
Fields¶
None
Class Details¶
- class Secret.Retrievable¶
- Bases:
- Structure:
A read-only view of a secret item in the Secret Service.
Secret.Retrievable
provides a read-only view of a secret item stored in the Secret Service.Each item has a value, represented by a [struct`Value`], which can be retrieved by [method`Retrievable`.retrieve_secret] and [method`Retrievable`.retrieve_secret_finish].
New in version 0.19.0.
- get_attributes()¶
- Returns:
a new reference to the attributes, which should not be modified, and released with [func`GLib`.HashTable.unref]
- Return type:
Get the attributes of this object.
The attributes are a mapping of string keys to string values. Attributes are used to search for items. Attributes are not stored or transferred securely by the secret service.
Do not modify the attribute returned by this method.
New in version 0.19.0.
- get_created()¶
- Returns:
the created date and time
- Return type:
Get the created date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st 1970.
New in version 0.19.0.
- get_label()¶
- Returns:
the label, which should be freed with [func`GLib`.free]
- Return type:
Get the label of this item.
New in version 0.19.0.
- get_modified()¶
- Returns:
the modified date and time
- Return type:
Get the modified date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st 1970.
New in version 0.19.0.
- retrieve_secret(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – optional cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – called when the operation completes
Retrieve the secret value of this object.
Each retrievable object has a single secret which might be a password or some other secret binary value.
This function returns immediately and completes asynchronously.
New in version 0.19.0.
- retrieve_secret_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – asynchronous result passed to callback- Raises:
- Returns:
the secret value which should be released with [method`Value`.unref], or
None
- Return type:
Secret.Value
orNone
Complete asynchronous operation to retrieve the secret value of this object.
New in version 0.19.0.
- retrieve_secret_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – optional cancellation object- Raises:
- Returns:
the secret value which should be released with [method`Value`.unref], or
None
- Return type:
Secret.Value
orNone
Retrieve the secret value of this object synchronously.
Each retrievable object has a single secret which might be a password or some other secret binary value.
This method may block indefinitely and should not be used in user interface threads.
New in version 0.19.0.
- do_retrieve_secret(cancellable, callback, *user_data) virtual¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – optional cancellation objectcallback (
Gio.AsyncReadyCallback
orNone
) – called when the operation completes
Retrieve the secret value of this object.
Each retrievable object has a single secret which might be a password or some other secret binary value.
This function returns immediately and completes asynchronously.
New in version 0.19.0.
- do_retrieve_secret_finish(result) virtual¶
- Parameters:
result (
Gio.AsyncResult
) – asynchronous result passed to callback- Returns:
the secret value which should be released with [method`Value`.unref], or
None
- Return type:
Secret.Value
orNone
Complete asynchronous operation to retrieve the secret value of this object.
New in version 0.19.0.
Property Details¶
- Secret.Retrievable.props.attributes¶
- Name:
attributes
- Type:
- Default Value:
- Flags:
The attributes set on this item.
Attributes are used to locate an item. They are not guaranteed to be stored or transferred securely.
New in version 0.19.0.
- Secret.Retrievable.props.created¶
-
The date and time (in seconds since the UNIX epoch) that this item was created.
New in version 0.19.0.
- Secret.Retrievable.props.label¶
-
The human readable label for the item.
New in version 0.19.0.