You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIPassword


This interface provides access to the contents of a password object.

Attributes
readonly attribute AUTF8String nsIPassword::host

Gets the name of the host corresponding to the login being saved.

The form of the host depends on how the nsIPassword object was created. If it was created as a result of submitting a form to a site, then the host is the url of the site, as obtained from a call to GetSpec. If it was created as a result of another app (e.g., mailnews) calling a prompt routine such as PromptUsernameAndPassword, then the host is whatever arbitrary string the app decided to pass in. Whatever form it is in, it will be used by the password manager to uniquely identify the login realm, so that "newsserver:119" is not the same thing as "newsserver".

readonly attribute AString nsIPassword::user

Gets the username portion of the login.

readonly attribute AString nsIPassword::password

Gets the password portion of the login.


Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX