![]() |
![]() |
![]() |
gnome-keyring Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef GnomeKeyringAccessControl; typedef GnomeKeyringApplicationRef; enum GnomeKeyringAccessType; GnomeKeyringApplicationRef * gnome_keyring_application_ref_new (void); GnomeKeyringApplicationRef * gnome_keyring_application_ref_copy (const GnomeKeyringApplicationRef *app); void gnome_keyring_application_ref_free (GnomeKeyringApplicationRef *app); GnomeKeyringAccessControl * gnome_keyring_access_control_new (const GnomeKeyringApplicationRef *application, GnomeKeyringAccessType types_allowed); GnomeKeyringAccessControl * gnome_keyring_access_control_copy (GnomeKeyringAccessControl *ac); void gnome_keyring_access_control_free (GnomeKeyringAccessControl *ac); GList * gnome_keyring_acl_copy (GList *list); void gnome_keyring_acl_free (GList *acl); char * gnome_keyring_item_ac_get_display_name (GnomeKeyringAccessControl *ac); void gnome_keyring_item_ac_set_display_name (GnomeKeyringAccessControl *ac, const char *value); char * gnome_keyring_item_ac_get_path_name (GnomeKeyringAccessControl *ac); void gnome_keyring_item_ac_set_path_name (GnomeKeyringAccessControl *ac, const char *value); GnomeKeyringAccessType gnome_keyring_item_ac_get_access_type (GnomeKeyringAccessControl *ac); void gnome_keyring_item_ac_set_access_type (GnomeKeyringAccessControl *ac, const GnomeKeyringAccessType value);
Each item has an access control list, which specifies the applications that
can read, write or delete an item. The read access applies only to reading the secret.
All applications can read other parts of the item. ACLs are accessed and changed
gnome_keyring_item_get_acl()
and gnome_keyring_item_set_acl()
.
typedef enum { GNOME_KEYRING_ACCESS_READ = 1<<0, GNOME_KEYRING_ACCESS_WRITE = 1<<1, GNOME_KEYRING_ACCESS_REMOVE = 1<<2 } GnomeKeyringAccessType;
GnomeKeyringApplicationRef * gnome_keyring_application_ref_new (void);
Create a new application reference.
Returns : |
A new GnomeKeyringApplicationRef pointer. |
GnomeKeyringApplicationRef * gnome_keyring_application_ref_copy (const GnomeKeyringApplicationRef *app);
Copy an application reference.
|
A GnomeKeyringApplicationRef pointer |
Returns : |
A new GnomeKeyringApplicationRef pointer. |
void gnome_keyring_application_ref_free (GnomeKeyringApplicationRef *app);
Free an application reference.
|
A GnomeKeyringApplicationRef pointer |
GnomeKeyringAccessControl * gnome_keyring_access_control_new (const GnomeKeyringApplicationRef *application, GnomeKeyringAccessType types_allowed);
Create a new access control for an item. Combine the various access rights allowed.
|
A GnomeKeyringApplicationRef pointer |
|
Access types allowed. |
Returns : |
The new GnomeKeyringAccessControl pointer. Use
gnome_keyring_access_control_free() to free the memory.
|
GnomeKeyringAccessControl * gnome_keyring_access_control_copy (GnomeKeyringAccessControl *ac);
Copy an access control for an item.
|
A GnomeKeyringAcessControl pointer |
Returns : |
The new GnomeKeyringAccessControl pointer. Use
gnome_keyring_access_control_free() to free the memory.
|
void gnome_keyring_access_control_free (GnomeKeyringAccessControl *ac);
Free an access control for an item.
|
A GnomeKeyringAccessControl pointer |
GList * gnome_keyring_acl_copy (GList *list);
Copy an access control list.
|
A list of GnomeKeyringAccessControl pointers. |
Returns : |
A new list of GnomeKeyringAccessControl items. Use
gnome_keyring_acl_free() to free the memory.
|
void gnome_keyring_acl_free (GList *acl);
Free an access control list.
|
A list of GnomeKeyringAccessControl pointers. |
char * gnome_keyring_item_ac_get_display_name (GnomeKeyringAccessControl *ac);
Get the access control application's display name.
|
A GnomeKeyringAccessControl pointer. |
Returns : |
A newly allocated string containing the display name. |
void gnome_keyring_item_ac_set_display_name (GnomeKeyringAccessControl *ac, const char *value);
Set the access control application's display name.
|
A GnomeKeyringAcccessControl pointer. |
|
The new application display name. |
char * gnome_keyring_item_ac_get_path_name (GnomeKeyringAccessControl *ac);
Get the access control application's full path name.
|
A GnomeKeyringAccessControl pointer. |
Returns : |
A newly allocated string containing the display name. |
void gnome_keyring_item_ac_set_path_name (GnomeKeyringAccessControl *ac, const char *value);
Set the access control application's full path name.
|
A GnomeKeyringAccessControl pointer |
|
The new application full path. |
GnomeKeyringAccessType gnome_keyring_item_ac_get_access_type (GnomeKeyringAccessControl *ac);
Get the application access rights for the access control.
|
A GnomeKeyringAccessControl pointer. |
Returns : |
The access rights. |
void gnome_keyring_item_ac_set_access_type (GnomeKeyringAccessControl *ac, const GnomeKeyringAccessType value);
Set the application access rights for the access control.
|
A GnomeKeyringAccessControl pointer. |
|
The new access rights. |