Module: Secret::Retrievable
- Defined in:
- (unknown)
Overview
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 [structValue], which can be retrieved by [methodRetrievable.retrieve_secret] and [methodRetrievable.retrieve_secret_finish].
Instance Method Summary collapse
-
#attributes ⇒ GLib::HashTable<String>
Get the attributes of this object.
-
#created ⇒ Integer
Get the created date and time of the object.
-
#label ⇒ String
Get the label of this item.
-
#modified ⇒ Integer
Get the modified date and time of the object.
-
#retrieve_secret(cancellable, callback, user_data) ⇒ nil
Retrieve the secret value of this object.
-
#retrieve_secret_finish(result) ⇒ Secret::Value
Complete asynchronous operation to retrieve the secret value of this object.
-
#retrieve_secret_sync(cancellable) ⇒ Secret::Value
Retrieve the secret value of this object synchronously.
Instance Method Details
#attributes ⇒ GLib::HashTable<String>
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.
#created ⇒ Integer
Get the created date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st 1970.
#label ⇒ String
Get the label of this item.
#modified ⇒ Integer
Get the modified date and time of the object.
The return value is the number of seconds since the unix epoch, January 1st 1970.
#retrieve_secret(cancellable, callback, user_data) ⇒ nil
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.
#retrieve_secret_finish(result) ⇒ Secret::Value
Complete asynchronous operation to retrieve the secret value of this object.
#retrieve_secret_sync(cancellable) ⇒ Secret::Value
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.