Commit Graph

77 Commits

Author SHA1 Message Date
Stef Walter
c22bc528df Rename secret_service_read_alias() to secret_collection_for_alias()
* Much more logical, especially in the future when arbitrary aliases
   are implemented in gnome-keyring-daemon
2012-07-12 12:38:50 +02:00
Stef Walter
35022289da Add documentation for how to migrate from libgnome-keyring 2012-07-12 11:40:50 +02:00
Stef Walter
9c2eca05ff Implement per collection search
* Use the SearchItems dbus method on the Collection interface
 * Tweak some issues with the service search code as well
2012-07-09 11:23:36 +02:00
Stef Walter
c1f860d45f Fix up documentation 2012-07-06 10:21:04 +02:00
Stef Walter
175ae08984 Disconnect the cached default SecretService if service goes away
* Because the session would no longer be valid if the service
   was autostarted for the same SecretService proxy
2012-07-06 10:08:27 +02:00
Stef Walter
7098b856b7 Rename the functions that operate on a dbus item path
* They all contain '_dbus_path' in their name
 * Move secret_service_get_session_path() to the paths functionality
 * Move the secret_collection_new() and secret_item_new() functionality
   to the path based section.
2012-07-06 09:27:05 +02:00
Stef Walter
153dfcec5f Add secret_collection_load_items()
* And flags to prevent loading of items when creating a
   SecretCollection object
 * Rename secret_service_ensure_collections() to
   secret_service_load_collections()
2012-07-05 23:33:07 +02:00
Stef Walter
889f6d66b7 Make secret_service_search() able to unlock, load secrets
* Turn secret_service_search() and friends into a more convenient
   API, so that callers can get attributes, unlocking, and secrets
   if so desired.
 * Also support retrieving either one secret, or all of them.
2012-07-05 23:33:07 +02:00
Stef Walter
012ed7d620 Move secret_service_get_secrets() to secret_item_load_secrets()
* And cache the secrets on the items instead of returning
   them in a GHashtable
2012-07-05 23:33:07 +02:00
Stef Walter
f962662b09 Separate path based functionality
* Move the dbus object path based functionality into its
   own file and own section of the documentation.
2012-07-05 23:33:07 +02:00
Stef Walter
49dd623e6e Keep a cached SecretValue on each SecretItem
* This item can be retrieved immediately and loaded asynchronously
 * It can also be loaded during initialization of the SecretItem
   object
2012-07-05 23:33:07 +02:00
Stef Walter
89550876ff Remove varargs SecretService methods
* The SecretService methods aren't used as frequently as the
   password methods, and it's not really necessary to have a whole
   bunch of extra varargs functions.
 * Add varargs functions for building a GHashTable of attributes
2012-06-28 13:15:06 +02:00
Evan Nemerson
d0df587f08 Add Vala bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=678846
2012-06-28 12:38:34 +02:00
Stef Walter
30c0afeab1 Add varargs function: secret_schema_new vs. secret_schema_newv
* Rename secret_schema_new to secret_schema_newv which
   accepts a GHashTable
 * Make secret_schema_new accept varargs similar to the
   password functions.
 * This is useful from vala which supports varargs
2012-06-28 10:36:38 +02:00
Stef Walter
e13b8c4680 Add methods to get services from collections, items
* Add secret_collection_get_service()
 * Add secret_item_get_service()
2012-06-25 10:17:29 +02:00
Stef Walter
79aab9d941 Add secret_service_read_alias() and secret_service_set_alias()
* Wrappers for Secret Service ReadAlias() and SetAlias() methods
   in various permutations.
2012-06-23 14:47:13 +02:00
Stef Walter
279ea1cc10 Add methods which handle prompts for a DBus object path
* Various prompting methods return the prompt result as
   a GVariant.
 * Added new prompt_path methods to SecretService
2012-06-23 14:22:28 +02:00
Stef Walter
441f8554e3 Fix C example code 2012-03-25 12:33:38 +02:00
Stef Walter
de403fd927 Add secret_password_clear() function
* Useful for clearing passwords in memory
2012-03-25 12:18:24 +02:00
Stef Walter
add0a1a55d More documentation clarifications
* Document how the 'paths' variants of functions work
 * Add more about aliases
 * Document @properties arguments
2012-03-24 13:34:07 +01:00
Stef Walter
ebb2806946 Add documentation of which parts of the API are unstable
* Use secret-unstable.h header for unstable bits
 * Add stability tag to SECTION headers
2012-03-24 07:52:12 +01:00
Stef Walter
8417d8c98b Fine tune how schemas work
* Handled entirely on the client side.
 * Schema names are stored in an xdg:schema attribute
 * Add option to turn of matching on schema names. So that we can
   lookup items stored by libgnome-keyring and others
 * Change schema 'identifier' to 'name'
 * Fix up tests
2012-03-18 21:58:02 +01:00
Stef Walter
966c1da87b Complete the example documentation 2012-03-18 15:38:29 +01:00
Stef Walter
432f5617fe Round up the documentation 2012-03-18 15:38:29 +01:00
Stef Walter
60f6e8e770 Tons of fixes for introspectable usage
* Schemas can also be created dynamically
 * Correct introspection types for hash tables passed as args
 * Validate argument hash tables
 * Add some predefined schemas
 * Allow allocation of pageable passwords from lookup functions
2012-03-11 09:08:49 +01:00
Stef Walter
2b7c1d8cdf Remove the gtkdoc interfaces file from git 2012-02-17 10:14:14 +01:00
Stef Walter
3edec36350 Reference documentation 2012-02-03 20:44:47 +01:00