Secret.Collection.for_alias_sync

function for_alias_sync(service: Secret.Service, alias: String, flags: Secret.CollectionFlags, cancellable: Gio.Cancellable): Secret.Collection {
    // Gjs wrapper for secret_collection_for_alias_sync()
}
  

Lookup which collection is assigned to this alias. Aliases help determine well known collections, such as 'default'.

If service is NULL, then Secret.Service.get_sync will be called to get the default Secret.Service proxy.

This method may block and should not be used in user interface threads.

service

a secret service object

alias

the alias to lookup

flags

options for the collection initialization

cancellable

optional cancellation object

Returns

the collection, or null if none assigned to the alias