Class
SecretCollection
Description [src]
class Secret.Collection : Gio.DBusProxy {
parent: GDBusProxy
}
A proxy object representing a collection of secrets in the Secret Service.
SecretCollection
represents a collection of secret items stored in the
Secret Service.
A collection can be in a locked or unlocked state. Use
secret_service_lock()
or secret_service_unlock()
to lock or
unlock the collection.
Use the SecretCollection:items
property or
secret_collection_get_items()
to lookup the items in the collection.
There may not be any items exposed when the collection is locked.
Stability: | Stable |
Constructors
secret_collection_new_for_dbus_path_finish
Finish asynchronous operation to get a new collection proxy for a collection in the secret service.
secret_collection_new_for_dbus_path_sync
Get a new collection proxy for a collection in the secret service.
Instance methods
secret_collection_delete
Delete this collection.
secret_collection_delete_finish
Complete operation to delete this collection.
secret_collection_delete_sync
Delete this collection.
secret_collection_get_created
Get the created date and time of the collection.
secret_collection_get_flags
Get the flags representing what features of the SecretCollection
proxy
have been initialized.
secret_collection_get_items
Get the list of items in this collection.
secret_collection_get_label
Get the label of this collection.
secret_collection_get_locked
Get whether the collection is locked or not.
secret_collection_get_modified
Get the modified date and time of the collection.
secret_collection_get_service
Get the Secret Service object that this collection was created with.
secret_collection_load_items
Ensure that the SecretCollection
proxy has loaded all the items present
in the Secret Service.
secret_collection_load_items_finish
Complete an asynchronous operation to ensure that the SecretCollection
proxy
has loaded all the items present in the Secret Service.
secret_collection_load_items_sync
Ensure that the SecretCollection
proxy has loaded all the items present
in the Secret Service. This affects the result of
secret_collection_get_items()
.
secret_collection_refresh
Refresh the properties on this collection. This fires off a request to refresh, and the properties will be updated later.
secret_collection_search
Search for items matching the attributes
in the collection
.
The attributes
should be a table of string keys and string values.
secret_collection_search_finish
Complete asynchronous operation to search for items in a collection.
secret_collection_search_for_dbus_paths
Search for items in collection
matching the attributes
, and return their
DBus object paths.
secret_collection_search_for_dbus_paths_finish
Complete asynchronous operation to search for items in a collection.
secret_collection_search_for_dbus_paths_sync
Search for items matching the attributes
in collection
, and return their
DBus object paths.
secret_collection_search_sync
Search for items matching the attributes
in the collection
.
The attributes
should be a table of string keys and string values.
secret_collection_set_label
Set the label of this collection.
secret_collection_set_label_finish
Complete asynchronous operation to set the label of this collection.
secret_collection_set_label_sync
Set the label of this collection.
Properties
Secret.Collection:created
The date and time (in seconds since the UNIX epoch) that this collection was created.
Secret.Collection:flags
A set of flags describing which parts of the secret collection have been initialized.
Secret.Collection:items
A list of SecretItem
objects representing the items that are in
this collection. This list will be empty if the collection is locked.
Secret.Collection:label
The human readable label for the collection.
Secret.Collection:locked
Whether the collection is locked or not.
Secret.Collection:modified
The date and time (in seconds since the UNIX epoch) that this collection was last modified.
Secret.Collection:service
The SecretService
object that this collection is associated with and
uses to interact with the actual D-Bus Secret Service.
Class structure
struct SecretCollectionClass {
GDBusProxyClass parent_class;
}
Class members
parent_class |
|
The parent class. |
Functions
secret_collection_create
Create a new collection in the secret service.
secret_collection_create_finish
Finish operation to create a new collection in the secret service.
secret_collection_create_sync
Create a new collection in the secret service.
secret_collection_for_alias
Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as ‘default’.
secret_collection_for_alias_finish
Finish an asynchronous operation to lookup which collection is assigned to an alias.
secret_collection_for_alias_sync
Lookup which collection is assigned to this alias. Aliases help determine
well known collections, such as default
.
secret_collection_new_for_dbus_path
Get a new collection proxy for a collection in the secret service.