Top | ![]() |
![]() |
![]() |
![]() |
|
e_secret_store_store_sync () |
|
e_secret_store_lookup_sync () |
|
e_secret_store_delete_sync () |
The e-secret-store API provides an interface to store, lookup and delete secrets from the keyring.
gboolean e_secret_store_store_sync (const
,gchar *uidconst
,gchar *secretconst
,gchar *label,
gboolean permanently,
GCancellable *cancellable);
GError **error
Stores the secret
for the uid
.
If permanently
is TRUE
error
and returns FALSE
uid |
a unique identifier of the secret |
|
secret |
the secret to store |
|
label |
human readable description of the secret |
|
permanently |
store permanently or just for the session |
|
cancellable |
optional |
|
error |
return location for a |
Since: 3.18
gboolean e_secret_store_lookup_sync (const
,gchar *uid,
gchar **out_secret,
GCancellable *cancellable);
GError **error
Looks up a secret for the uid
. Both the default and session keyrings
are queried.
Note the boolean return value indicates whether the lookup operation
itself completed successfully, not whether the secret was found. If
no secret was found, the function will set out_secret
to NULL
TRUE
error
and returns FALSE
uid |
a unique identifier of the secret |
|
out_secret |
return location for the secret, or |
[out] |
cancellable |
optional |
|
error |
return location for a |
Since: 3.18
gboolean e_secret_store_delete_sync (const
,gchar *uid,
GCancellable *cancellable);
GError **error
Deletes the secret for uid
from either the default keyring or
session keyring.
Note the boolean return value indicates whether the delete operation
itself completed successfully, not whether the secret was found and
deleted. If no such secret was found, the function will still return
TRUE
error
and returns FALSE
uid |
a unique identifier of the secret |
|
cancellable |
optional |
|
error |
return location for a |
Since: 3.18