An alias to the default collection.
This can be passed to [funcpassword_store]
[funcCollection
.for_alias].
An alias to the session collection, which will be cleared when the user ends the session.
This can be passed to [funcpassword_store]
, [funcCollection
.for_alias] or
similar functions.
The major version of libsecret.
The micro version of libsecret.
The minor version of libsecret.
Get a #SecretBackend instance.
If such a backend already exists, then the same backend is returned.
If flags
contains any flags of which parts of the secret backend to
ensure are initialized, then those will be initialized before completing.
This method will return immediately and complete asynchronously.
flags for which service functionality to ensure is initialized
optional cancellation object
called when the operation completes
Complete an asynchronous operation to get a #SecretBackend.
the asynchronous result passed to the callback
Get the error quark.
Get a secret storage schema of the given type
.
C code may access the schemas (such as %SECRET_SCHEMA_NOTE) directly, but language bindings cannot, and must use this accessor.
type of schema to get
Remove unlocked matching passwords from the secret service.
The attributes
should be a set of key and value string pairs.
All unlocked items that match the attributes will be deleted.
This method will return immediately and complete asynchronously.
the schema for the attributes
the attribute keys and values
optional cancellation object
called when the operation completes
Finish an asynchronous operation to remove passwords from the secret service.
the asynchronous result passed to the callback
Remove unlocked matching passwords from the secret service.
The attributes
should be a set of key and value string pairs.
All unlocked items that match the attributes will be deleted.
This method may block indefinitely and should not be used in user interface threads.
the schema for the attributes
the attribute keys and values
optional cancellation object
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 will return immediately and complete asynchronously.
the schema for attributes
the attribute keys and values
optional cancellation object
called when the operation completes
Finish an asynchronous operation to lookup a password in the secret service.
the asynchronous result passed to the callback
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.
the schema for attributes
the attribute keys and values
optional cancellation object
Search for items in the secret service.
The attributes
should be a set of key and value string pairs.
This method will return immediately and complete asynchronously.
the schema for attributes
the attribute keys and values
search option flags
optional cancellation object
called when the operation completes
Finish an asynchronous operation to search for items in the secret service.
the asynchronous result passed to the callback
Search for items 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.
the schema for attributes
the attribute keys and values
search option flags
optional cancellation object
Store a password in the secret service.
The attributes
should be a set of key and value string pairs.
If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.
If collection
is %NULL, then the default collection will be
used. Use [constCOLLECTION_SESSION]
to store the password in the session
collection, which doesn't get stored across login sessions.
This method will return immediately and complete asynchronously.
the schema for attributes
the attribute keys and values
a collection alias, or D-Bus object path of the collection where to store the secret
label for the secret
the null-terminated password to store
optional cancellation object
called when the operation completes
Store a password in the secret service.
This is similar to [funcpassword_storev]
, but takes a
[structValue]
as the argument instead of a null-terminated password.
This method will return immediately and complete asynchronously.
the schema for attributes
the attribute keys and values
a collection alias, or D-Bus object path of the collection where to store the secret
label for the secret
a [structValue]
optional cancellation object
called when the operation completes
Store a password in the secret service.
This is similar to [funcpassword_storev_sync]
, but takes a [structValue]
as
the argument instead of a null-terminated passwords.
This method may block indefinitely and should not be used in user interface threads.
the schema for attributes
the attribute keys and values
a collection alias, or D-Bus object path of the collection where to store the secret
label for the secret
a [structValue]
optional cancellation object
Finish asynchronous operation to store a password in the secret service.
the asynchronous result passed to the callback
Store a password in the secret service.
The attributes
should be a set of key and value string pairs.
If the attributes match a secret item already stored in the collection, then the item will be updated with these new values.
If collection
is %NULL, then the default collection will be
used. Use [constCOLLECTION_SESSION]
to store the password in the session
collection, which doesn't get stored across login sessions.
This method may block indefinitely and should not be used in user interface threads.
the schema for attributes
the attribute keys and values
a collection alias, or D-Bus object path of the collection where to store the secret
label for the secret
the null-terminated password to store
optional cancellation object
Clear the memory used by a password.
password to clear
Extension point for the secret backend.