Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsPassword Class Reference

#include <nsPassword.h>

Inheritance diagram for nsPassword:
Inheritance graph
[legend]
Collaboration diagram for nsPassword:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIPASSWORD 
nsPassword (char *host, PRUnichar *user, PRUnichar *pswd)
 nsPassword ()
virtual ~nsPassword (void)

Public Attributes

readonly attribute AUTF8String host
 the name of the host corresponding to the login being saved
readonly attribute AString user
 the user name portion of the login
readonly attribute AString password
 the password portion of the login

Protected Attributes

char * passwordHost
PRUnicharpasswordUser
PRUnicharpasswordPswd

Detailed Description

Definition at line 46 of file nsPassword.h.


Constructor & Destructor Documentation

nsPassword::nsPassword ( char *  host,
PRUnichar user,
PRUnichar pswd 
)

Definition at line 50 of file nsPassword.cpp.

Definition at line 47 of file nsPassword.cpp.

                       {
}
nsPassword::~nsPassword ( void  ) [virtual]

Member Data Documentation

readonly attribute AUTF8String nsIPassword::host [inherited]

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 at 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".

Definition at line 68 of file nsIPassword.idl.

readonly attribute AString nsIPassword::password [inherited]

the password portion of the login

Definition at line 78 of file nsIPassword.idl.

char* nsPassword::passwordHost [protected]

Definition at line 59 of file nsPassword.h.

Definition at line 61 of file nsPassword.h.

Definition at line 60 of file nsPassword.h.

readonly attribute AString nsIPassword::user [inherited]

the user name portion of the login

Definition at line 73 of file nsIPassword.idl.


The documentation for this class was generated from the following files: