item was created.
secret.retrievable_mixin
Module for [Retrievable] interface mixin
Templates 2
A read-only view of a secret item in the Secret Service.
#SecretRetrievable 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 [secret.retrievable.Retrievable.retrieveSecret] and [secret.retrievable.Retrievable.retrieveSecretFinish].
Get created property.
Returns
Set created property.
Parameters
propval | The date and time (in seconds since the UNIX epoch) that this item was created. |
Get label property.
Returns
Set label property.
Parameters
propval | The human readable label for the item. |
Get modified property.
Returns
item was last modified.
Set modified property.
Parameters
propval | The date and time (in seconds since the UNIX epoch) that this item was last modified. |
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.
Returns
to the attributes, which should not be modified, and released with [glib.hash_table.HashTable.unref]
Get the created date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st
Get the label of this item.
Returns
funcGLib.freeGet the modified date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st
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.
Parameters
cancellable | optional cancellation object |
callback | called when the operation completes |
Complete asynchronous operation to retrieve the secret value of this object.
Parameters
result | asynchronous result passed to callback |
Returns
released with [secret.value.Value.unref], or null
Throws
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.
Parameters
cancellable | optional cancellation object |
Returns
released with [secret.value.Value.unref], or null
Throws
Set created property.
Parameters
propval | The date and time (in seconds since the UNIX epoch) that this item was created. |
Returns
Set label property.
Parameters
propval | The human readable label for the item. |
Returns
Set modified property.
Parameters
propval | The date and time (in seconds since the UNIX epoch) that this item was last modified. |