aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-04-04 16:36:33 -0400
committerGlenn Morris2012-04-04 16:36:33 -0400
commitaebd5f1a83c8ffc4f857f3f353c4a06e008cee88 (patch)
treede0dc020f8d6fa9c7c92e3bc1ee2509fda43ca12
parente5248ac91dfc4dcd28f066af6de4896cda98e4b2 (diff)
downloademacs-aebd5f1a83c8ffc4f857f3f353c4a06e008cee88.tar.gz
emacs-aebd5f1a83c8ffc4f857f3f353c4a06e008cee88.zip
auth.texi small edits
* doc/misc/auth.texi (Secret Service API): Copyedits. (Help for developers): Fill in some missing function doc-strings.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/auth.texi55
2 files changed, 32 insertions, 28 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 45f6c9455df..e6ded4f653c 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12012-04-04 Glenn Morris <rgm@gnu.org>
2
3 * auth.texi (Secret Service API): Copyedits.
4 (Help for developers): Fill in some missing function doc-strings.
5
12012-04-04 Michael Albinus <michael.albinus@gmx.de> 62012-04-04 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * auth.texi (Secret Service API): Add the missing text. 8 * auth.texi (Secret Service API): Add the missing text.
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi
index fe6464ae6b6..08e093f57ac 100644
--- a/doc/misc/auth.texi
+++ b/doc/misc/auth.texi
@@ -233,9 +233,9 @@ to securely store passwords and other confidential information.
233Implementations of compliant daemons are the GNOME Keyring and the KDE 233Implementations of compliant daemons are the GNOME Keyring and the KDE
234Wallet. 234Wallet.
235 235
236Although the usage of the client library secrets.el is hidden in Emacs 236The auth-source library uses the @file{secrets.el} library as an
237via the auth-source library, its functionality can be used also 237interface to this feature. You can also use that library in other
238directly in other packages. 238packages.
239 239
240@defvar secrets-enabled 240@defvar secrets-enabled
241After loading @file{secrets.el}, a non-@code{nil} value of this 241After loading @file{secrets.el}, a non-@code{nil} value of this
@@ -244,7 +244,7 @@ Service API.
244@end defvar 244@end defvar
245 245
246@deffn Command secrets-show-secrets 246@deffn Command secrets-show-secrets
247All collections, items, and their attributes are inspected by this command. 247This command inspects all collections, items, and their attributes.
248@end deffn 248@end deffn
249 249
250The atomic objects to be managed by the Secret Service API are 250The atomic objects to be managed by the Secret Service API are
@@ -260,9 +260,9 @@ user session context.
260 260
261A collection can have an alias name. The use case for this is to 261A collection can have an alias name. The use case for this is to
262set the alias @samp{"default"} for a given collection, making it 262set the alias @samp{"default"} for a given collection, making it
263transparent for clients, which collection is used. Other aliases 263transparent to clients as to which collection is used. Other aliases
264are not supported (yet). Since an alias is visible to all 264are not supported (yet). Since an alias is visible to all
265applications, this setting shall be performed with care. 265applications, this setting should be performed with care.
266 266
267@defun secrets-list-collections 267@defun secrets-list-collections
268This function returns a list of collection names. 268This function returns a list of collection names.
@@ -281,15 +281,15 @@ For the time being, only the alias @samp{"default"} is supported.
281Collections can be created and deleted by the functions 281Collections can be created and deleted by the functions
282@code{secrets-create-collection} and @code{secrets-delete-collection}. 282@code{secrets-create-collection} and @code{secrets-delete-collection}.
283Usually, this is not applied from within Emacs. Common collections, 283Usually, this is not applied from within Emacs. Common collections,
284like @samp{"login"}, shall never be deleted. 284like @samp{"login"}, should never be deleted.
285 285
286There exists a special collection called @samp{"session"}, which has 286There exists a special collection called @samp{"session"}, which has
287the lifetime of the corresponding client session (aka Emacs's 287the lifetime of the corresponding client session (aka Emacs's
288lifetime). It is created automatically when Emacs uses the Secret 288lifetime). It is created automatically when Emacs uses the Secret
289Service interface, and it is deleted when Emacs is killed. Therefore, 289Service interface, and it is deleted when Emacs is killed. Therefore,
290it can be used to store and retrieve secret items temporarily. This 290it can be used to store and retrieve secret items temporarily. This
291shall be preferred over creation of a persistent collection, when the 291should be preferred over creation of a persistent collection, when the
292information shall not live longer than Emacs. The session collection 292information should not live longer than Emacs. The session collection
293can be addressed either by the string @samp{"session"}, or by 293can be addressed either by the string @samp{"session"}, or by
294@code{nil}, whenever a collection parameter is needed in the following 294@code{nil}, whenever a collection parameter is needed in the following
295functions. 295functions.
@@ -305,7 +305,7 @@ Returns a list of all item labels of @var{collection}.
305 305
306@defun secrets-create-item collection item password &rest attributes 306@defun secrets-create-item collection item password &rest attributes
307This function creates a new item in @var{collection} with label 307This function creates a new item in @var{collection} with label
308@var{item} and password @var{PASSWORD}. @var{attributes} are 308@var{item} and password @var{password}. @var{attributes} are
309key-value pairs set for the created item. The keys are keyword 309key-value pairs set for the created item. The keys are keyword
310symbols, starting with a colon. Example: 310symbols, starting with a colon. Example:
311 311
@@ -347,7 +347,7 @@ attributes, it returns @code{nil}. Example:
347@end defun 347@end defun
348 348
349@defun secrets-search-items collection &rest attributes 349@defun secrets-search-items collection &rest attributes
350Searchs items in @var{collection} with @var{attributes}. 350Search items in @var{collection} with @var{attributes}.
351@var{attributes} are key-value pairs, as used in 351@var{attributes} are key-value pairs, as used in
352@code{secrets-create-item}. Example: 352@code{secrets-create-item}. Example:
353 353
@@ -370,14 +370,14 @@ logging.
370 370
371The auth-source library only has a few functions for external use. 371The auth-source library only has a few functions for external use.
372 372
373@defun auth-source-search SPEC 373@defun auth-source-search &rest spec &key type max host user port secret require create delete &allow-other-keys
374 374This function searches (or modifies) authentication backends according
375TODO: how to include docstring? 375to @var{spec}. See the function's doc-string for details.
376 376@c TODO more details.
377@end defun 377@end defun
378 378
379Let's take a look at an example of using @code{auth-source-search} 379Let's take a look at an example of using @code{auth-source-search}
380from Gnus' @code{nnimap.el}. 380from Gnus's @code{nnimap.el}.
381 381
382@example 382@example
383(defun nnimap-credentials (address ports) 383(defun nnimap-credentials (address ports)
@@ -432,22 +432,21 @@ the same question again, which is annoying.
432So the responsibility of the API user that specified @code{:create t} 432So the responsibility of the API user that specified @code{:create t}
433is to call the @code{:save-function} if it's provided. 433is to call the @code{:save-function} if it's provided.
434 434
435@defun auth-source-delete SPEC 435@defun auth-source-delete &rest spec &key delete &allow-other-keys
436 436This function deletes entries matching @var{spec} from the
437TODO: how to include docstring? 437authentication backends. It returns the entries that were deleted.
438 438The backend may not actually delete the entries.
439@end defun 439@end defun
440 440
441@defun auth-source-forget SPEC 441@defun auth-source-forget spec
442 442This function forgets any cached data that exactly matches @var{spec}.
443TODO: how to include docstring? 443It returns @code{t} if it forget some data, and @code{nil} if no
444 444matching data was found.
445@end defun 445@end defun
446 446
447@defun auth-source-forget+ SPEC 447@defun auth-source-forget+ &rest spec &allow-other-keys
448 448This function forgets any cached data matching @var{spec}.
449TODO: how to include docstring? 449It returns the number of items forgotten.
450
451@end defun 450@end defun
452 451
453@node GnuPG and EasyPG Assistant Configuration 452@node GnuPG and EasyPG Assistant Configuration