Interface nsILoginInfoType

An object containing information for a login stored by the password manager.

Hierarchy

Properties

displayOrigin: string

A string to display to the user for the origin which includes the httpRealm, where applicable. e.g. "site.com", "site.com:1234", or "site.com (My Secure Realm)"

formActionOrigin: string

The origin a form-based login was submitted to.

For logins obtained from HTML forms, this field is the origin of the |action| attribute from the |form| element. 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.

formSubmitURL: string

The origin a form-based login was submitted to, incorrectly referred to as a URL.

Deprecated

in favor of formActionOrigin

hostname: string

The origin the login applies to, incorrectly called a hostname.

Deprecated

in favor of origin

httpRealm: string

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.

origin: string

The origin the login applies to.

For example, "https://site.com", "http://site.com:1234", "ftp://ftp.site.com", "moz-proxy://127.0.0.1:8888, "chrome://FirefoxAccounts", "file://".

password: string

The password for the login.

passwordField: string

The |name| attribute for the password input field.

For logins obtained from a HTTP or FTP protocol authentication, this field is an empty string.

Note

This attribute is currently saved but not used.

username: string

The username for the login.

usernameField: string

The |name| attribute for the username input field.

For logins obtained from a HTTP or FTP protocol authentication, this field is an empty string.

Note

This attribute is currently saved but not used.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Create an identical copy of the login, duplicating all of the login's nsILoginInfo and nsILoginMetaInfo properties.

    This allows code to be forwards-compatible, when additional properties are added to nsILoginMetaInfo (or nsILoginInfo) in the future.

    Returns nsILoginInfo

  • Test for strict equality with another nsILoginInfo object.

    Parameters

    • aLoginInfo: nsILoginInfo

      The other object to test.

    Returns boolean

  • Initialize a newly created nsLoginInfo object.

    The arguments are the fields for the new object.

    Parameters

    • aOrigin: string
    • aFormActionOrigin: string
    • aHttpRealm: string
    • aUsername: string
    • aPassword: string
    • aUsernameField: string
    • aPasswordField: string

    Returns void

  • Test for loose equivalency with another nsILoginInfo object. The passwordField and usernameField values are ignored, and the password values may be optionally ignored. If one login's formSubmitURL is an empty string (but not null), it will be treated as a wildcard. [The blank value indicates the login was stored before bug 360493 was fixed.]

    Parameters

    • aLoginInfo: nsILoginInfo

      The other object to test.

    • ignorePassword: boolean

      If true, ignore the password when checking for match.

    Returns boolean

Generated using TypeDoc