toolkit/components/passwordmgr/nsILoginMetaInfo.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/passwordmgr/nsILoginMetaInfo.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +[scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)]
    1.12 +
    1.13 +/**
    1.14 + * An object containing metainfo for a login stored by the login manager.
    1.15 + *
    1.16 + * Code using login manager can generally ignore this interface. When adding
    1.17 + * logins, default value will be created. When modifying logins, these
    1.18 + * properties will be unchanged unless a change is explicitly requested [by
    1.19 + * using modifyLogin() with a nsIPropertyBag]. When deleting a login or
    1.20 + * comparing logins, these properties are ignored.
    1.21 + */
    1.22 +interface nsILoginMetaInfo : nsISupports {
    1.23 +    /**
    1.24 +     * The GUID to uniquely identify the login. This can be any arbitrary
    1.25 +     * string, but a format as created by nsIUUIDGenerator is recommended.
    1.26 +     * For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"
    1.27 +     *
    1.28 +     * addLogin will generate a random value unless a value is provided.
    1.29 +     *
    1.30 +     * addLogin and modifyLogin will throw if the GUID already exists.
    1.31 +     */
    1.32 +    attribute AString guid;
    1.33 +
    1.34 +    /**
    1.35 +     * The time, in Unix Epoch milliseconds, when the login was first created.
    1.36 +     */
    1.37 +    attribute unsigned long long timeCreated;
    1.38 +
    1.39 +    /**
    1.40 +     * The time, in Unix Epoch milliseconds, when the login was last submitted
    1.41 +     * in a form or used to begin an HTTP auth session.
    1.42 +     */
    1.43 +    attribute unsigned long long timeLastUsed;
    1.44 +
    1.45 +    /**
    1.46 +     * The time, in Unix Epoch milliseconds, when the login's password was
    1.47 +     * last modified.
    1.48 +     */
    1.49 +    attribute unsigned long long timePasswordChanged;
    1.50 +
    1.51 +    /**
    1.52 +     * The number of times the login was submitted in a form or used to begin
    1.53 +     * an HTTP auth session.
    1.54 +     */
    1.55 +    attribute unsigned long timesUsed;
    1.56 +};

mercurial