diff options
| author | Glenn Morris | 2012-04-04 16:36:33 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-04-04 16:36:33 -0400 |
| commit | aebd5f1a83c8ffc4f857f3f353c4a06e008cee88 (patch) | |
| tree | de0dc020f8d6fa9c7c92e3bc1ee2509fda43ca12 | |
| parent | e5248ac91dfc4dcd28f066af6de4896cda98e4b2 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/auth.texi | 55 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-04-04 Michael Albinus <michael.albinus@gmx.de> | 6 | 2012-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. | |||
| 233 | Implementations of compliant daemons are the GNOME Keyring and the KDE | 233 | Implementations of compliant daemons are the GNOME Keyring and the KDE |
| 234 | Wallet. | 234 | Wallet. |
| 235 | 235 | ||
| 236 | Although the usage of the client library secrets.el is hidden in Emacs | 236 | The auth-source library uses the @file{secrets.el} library as an |
| 237 | via the auth-source library, its functionality can be used also | 237 | interface to this feature. You can also use that library in other |
| 238 | directly in other packages. | 238 | packages. |
| 239 | 239 | ||
| 240 | @defvar secrets-enabled | 240 | @defvar secrets-enabled |
| 241 | After loading @file{secrets.el}, a non-@code{nil} value of this | 241 | After 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 |
| 247 | All collections, items, and their attributes are inspected by this command. | 247 | This command inspects all collections, items, and their attributes. |
| 248 | @end deffn | 248 | @end deffn |
| 249 | 249 | ||
| 250 | The atomic objects to be managed by the Secret Service API are | 250 | The atomic objects to be managed by the Secret Service API are |
| @@ -260,9 +260,9 @@ user session context. | |||
| 260 | 260 | ||
| 261 | A collection can have an alias name. The use case for this is to | 261 | A collection can have an alias name. The use case for this is to |
| 262 | set the alias @samp{"default"} for a given collection, making it | 262 | set the alias @samp{"default"} for a given collection, making it |
| 263 | transparent for clients, which collection is used. Other aliases | 263 | transparent to clients as to which collection is used. Other aliases |
| 264 | are not supported (yet). Since an alias is visible to all | 264 | are not supported (yet). Since an alias is visible to all |
| 265 | applications, this setting shall be performed with care. | 265 | applications, this setting should be performed with care. |
| 266 | 266 | ||
| 267 | @defun secrets-list-collections | 267 | @defun secrets-list-collections |
| 268 | This function returns a list of collection names. | 268 | This function returns a list of collection names. |
| @@ -281,15 +281,15 @@ For the time being, only the alias @samp{"default"} is supported. | |||
| 281 | Collections can be created and deleted by the functions | 281 | Collections 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}. |
| 283 | Usually, this is not applied from within Emacs. Common collections, | 283 | Usually, this is not applied from within Emacs. Common collections, |
| 284 | like @samp{"login"}, shall never be deleted. | 284 | like @samp{"login"}, should never be deleted. |
| 285 | 285 | ||
| 286 | There exists a special collection called @samp{"session"}, which has | 286 | There exists a special collection called @samp{"session"}, which has |
| 287 | the lifetime of the corresponding client session (aka Emacs's | 287 | the lifetime of the corresponding client session (aka Emacs's |
| 288 | lifetime). It is created automatically when Emacs uses the Secret | 288 | lifetime). It is created automatically when Emacs uses the Secret |
| 289 | Service interface, and it is deleted when Emacs is killed. Therefore, | 289 | Service interface, and it is deleted when Emacs is killed. Therefore, |
| 290 | it can be used to store and retrieve secret items temporarily. This | 290 | it can be used to store and retrieve secret items temporarily. This |
| 291 | shall be preferred over creation of a persistent collection, when the | 291 | should be preferred over creation of a persistent collection, when the |
| 292 | information shall not live longer than Emacs. The session collection | 292 | information should not live longer than Emacs. The session collection |
| 293 | can be addressed either by the string @samp{"session"}, or by | 293 | can 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 |
| 295 | functions. | 295 | functions. |
| @@ -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 |
| 307 | This function creates a new item in @var{collection} with label | 307 | This 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 |
| 309 | key-value pairs set for the created item. The keys are keyword | 309 | key-value pairs set for the created item. The keys are keyword |
| 310 | symbols, starting with a colon. Example: | 310 | symbols, 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 |
| 350 | Searchs items in @var{collection} with @var{attributes}. | 350 | Search 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 | ||
| 371 | The auth-source library only has a few functions for external use. | 371 | The 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 | 374 | This function searches (or modifies) authentication backends according | |
| 375 | TODO: how to include docstring? | 375 | to @var{spec}. See the function's doc-string for details. |
| 376 | 376 | @c TODO more details. | |
| 377 | @end defun | 377 | @end defun |
| 378 | 378 | ||
| 379 | Let's take a look at an example of using @code{auth-source-search} | 379 | Let's take a look at an example of using @code{auth-source-search} |
| 380 | from Gnus' @code{nnimap.el}. | 380 | from 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. | |||
| 432 | So the responsibility of the API user that specified @code{:create t} | 432 | So the responsibility of the API user that specified @code{:create t} |
| 433 | is to call the @code{:save-function} if it's provided. | 433 | is 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 | 436 | This function deletes entries matching @var{spec} from the | |
| 437 | TODO: how to include docstring? | 437 | authentication backends. It returns the entries that were deleted. |
| 438 | 438 | The 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 | 442 | This function forgets any cached data that exactly matches @var{spec}. | |
| 443 | TODO: how to include docstring? | 443 | It returns @code{t} if it forget some data, and @code{nil} if no |
| 444 | 444 | matching 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 | 448 | This function forgets any cached data matching @var{spec}. | |
| 449 | TODO: how to include docstring? | 449 | It 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 |