Interface nsILoginMetaInfoType

An object containing metainfo for a login stored by the login manager.

Code using login manager can generally ignore this interface. When adding logins, default value will be created. When modifying logins, these properties will be unchanged unless a change is explicitly requested [by using modifyLogin() with a nsIPropertyBag]. When deleting a login or comparing logins, these properties are ignored.

Hierarchy

Properties

guid: string

The GUID to uniquely identify the login. This can be any arbitrary string, but a format as created by nsIUUIDGenerator is recommended. For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"

addLogin will generate a random value unless a value is provided.

addLogin and modifyLogin will throw if the GUID already exists.

timeCreated: number

The time, in Unix Epoch milliseconds, when the login was first created.

timeLastUsed: number

The time, in Unix Epoch milliseconds, when the login was last submitted in a form or used to begin an HTTP auth session.

timePasswordChanged: number

The time, in Unix Epoch milliseconds, when the login was last modified.

Contrary to what the name may suggest, this attribute takes into account not only the password but also the username attribute.

timesUsed: number

The number of times the login was submitted in a form or used to begin an HTTP auth session.

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

Generated using TypeDoc