Function

Secret-1Secretpassword_lookup_sync

  • Lookup a password in the secret service.

    The attributes should be a set of key and value string pairs.

    If no secret is found then null is returned.

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

    Parameters

    • schema: Schema

      the schema for attributes

    • attributes: GLib.HashTable<string, string> | { [key: string]: any }

      the attribute keys and values

    • Optionalcancellable: Gio.Cancellable

      optional cancellation object

    Returns string

    a new password string which should be freed with password_free or may be freed with GLib.free when done