WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/login-manager/loginInfo;1

This component implements the following interfaces:

Properties

AString nsILoginInfo.formSubmitURL

The URL a form-based login was submitted to.

For logins obtained from HTML forms, this field is the action attribute from the form element, with the path removed. For example "http://www.site.com". [Forms with no action attribute default to submitting to their origin URL, so we store that.]

For logins obtained from a HTTP or FTP protocol authentication, this field is NULL.

AString nsILoginInfo.hostname

The hostname the login applies to.

The hostname should be formatted as an URL. For example, "https://site.com", "http://site.com:1234", "ftp://ftp.site.com".

AString nsILoginInfo.httpRealm

The HTTP Realm a login was requested for.

When an HTTP server sends a 401 result, the WWW-Authenticate header includes a realm to identify the "protection space." See RFC2617. If the response sent has a missing or blank realm, the hostname is used instead.

For logins obtained from HTML forms, this field is NULL.

AString nsILoginInfo.password

The password for the login.

AString nsILoginInfo.passwordField

The name attribute for the password input field.

For logins obtained from a HTTP or FTP protocol authentication, this field is NULL.

AString nsILoginInfo.username

The username for the login.

AString nsILoginInfo.usernameField

The name attribute for the username input field.

For logins obtained from a HTTP or FTP protocol authentication, this field is NULL.

Methods

InterfaceMethod
nsILoginInfo PRBool equals ( nsILoginInfo loginInfo )
nsILoginInfo void init ( AString hostname , AString formSubmitURL , AString httpRealm , AString username , AString password , AString usernameField , AString passwordField )
nsILoginInfo PRBool matches ( nsILoginInfo loginInfo , PRBool ignorePassword )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com