Collection
Object Hierarchy:
Secret.Collection
Secret.Collection
Secret.Collection
GLib.DBusProxy
GLib.DBusProxy
GLib.DBusProxy->Secret.Collection
GLib.Object
GLib.Object
GLib.Object->GLib.DBusProxy
GLib.AsyncInitable
GLib.AsyncInitable
GLib.AsyncInitable->Secret.Collection
GLib.AsyncInitable->GLib.DBusProxy
GLib.DBusInterface
GLib.DBusInterface
GLib.DBusInterface->Secret.Collection
GLib.DBusInterface->GLib.DBusProxy
GLib.Initable
GLib.Initable
GLib.Initable->Secret.Collection
GLib.Initable->GLib.DBusProxy
Description:
[ CCode ( type_id = "secret_collection_get_type ()" ) ]public class Collection : DBusProxy , AsyncInitable , DBusInterface , Initable
A proxy object representing a collection of secrets in the Secret Service.
Collection represents a collection of secret items stored in the Secret Service.
A collection can be in a locked or unlocked state. Use [methodSecretService.lock
] or [methodSecretService.unlock
] to lock or unlock the collection.
Use the [propertySecretCollection:items
] property or [methodSecretCollection.get_items
] to lookup the items in
the collection. There may not be any items exposed when the collection is locked.
Content:
Properties:
public uint64 created { get ; set ; }
The date and time (in seconds since the UNIX epoch) that this
collection was created.
public CollectionFlags flags { get ; construct ; }
A set of flags describing which parts of the secret collection have
been initialized.
public string label { owned get ; set ; }
The human readable label for the collection.
public bool locked { get ; }
Whether the collection is locked or not.
public uint64 modified { get ; set ; }
The date and time (in seconds since the UNIX epoch) that this
collection was last modified.
public Service service { get ; construct ; }
The [classService
] object that this collection is
associated with and uses to interact with the actual D-Bus Secret Service.
Static methods:
public static async Collection create (Service ? service, string label, string ? alias, CollectionCreateFlags flags, Cancellable ? cancellable) throws Error
Create a new collection in the secret service.
public static Collection create_sync (Service ? service, string label, string ? alias, CollectionCreateFlags flags, Cancellable ? cancellable = null ) throws Error
Create a new collection in the secret service.
public static async Collection for_alias (Service ? service, string alias, CollectionFlags flags, Cancellable ? cancellable) throws Error
Lookup which collection is assigned to this alias.
public static Collection for_alias_sync (Service ? service, string alias, CollectionFlags flags, Cancellable ? cancellable = null ) throws Error
Lookup which collection is assigned to this alias.
Creation methods:
Methods:
public async bool @delete (Cancellable ? cancellable) throws Error
Delete this collection.
public bool delete_sync (Cancellable ? cancellable = null ) throws Error
Delete this collection.
public uint64 get_created ()
Get the created date and time of the collection.
public CollectionFlags get_flags ()
Get the flags representing what features of the
Collection proxy have been initialized.
public List <Item > get_items ()
Get the list of items in this collection.
public string get_label ()
Get the label of this collection.
public bool get_locked ()
Get whether the collection is locked or not.
public uint64 get_modified ()
Get the modified date and time of the collection.
public unowned Service get_service ()
Get the Secret Service object that this collection was created with.
public async bool load_items (Cancellable ? cancellable) throws Error
Ensure that the Collection proxy has loaded
all the items present in the Secret Service.
public bool load_items_sync (Cancellable ? cancellable = null ) throws Error
Ensure that the Collection proxy has loaded
all the items present in the Secret Service.
public void refresh ()
Refresh the properties on this collection.
public async List <Item > search (Schema ? schema, HashTable <string ,string > attributes, SearchFlags flags, Cancellable ? cancellable) throws Error
Search for items matching the attributes
in the
collection
.
public async string [] search_for_dbus_paths (Schema ? schema, HashTable <string ,string > attributes, Cancellable ? cancellable) throws Error
Search for items in this matching
the attributes
, and return their DBus object paths.
public string [] search_for_dbus_paths_sync (Schema ? schema, HashTable <string ,string > attributes, Cancellable ? cancellable = null ) throws Error
Search for items matching the attributes
in
this , and return their DBus object paths.
public List <Item > search_sync (Schema ? schema, HashTable <string ,string > attributes, SearchFlags flags, Cancellable ? cancellable = null ) throws Error
Search for items matching the attributes
in the
collection
.
public async bool set_label (string label, Cancellable ? cancellable) throws Error
Set the label of this collection.
public bool set_label_sync (string label, Cancellable ? cancellable = null ) throws Error
Set the label of this collection.
Inherited Members:
All known members inherited from class GLib.DBusProxy
@new
call
call_sync
call_with_unix_fd_list
call_with_unix_fd_list_sync
create_for_bus
g_bus_type
g_connection
g_default_timeout
g_flags
g_interface_info
g_interface_name
g_name
g_name_owner
g_object_path
g_properties_changed
g_signal
get_cached_property
get_cached_property_names
get_connection
get_default_timeout
get_flags
get_interface_info
get_interface_name
get_name
get_name_owner
get_object_path
set_cached_property
set_default_timeout
set_interface_info
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable