Source code

Revision control

Other Tools

1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
6
#include "nsISupports.idl"
7
8
/**
9
* An object containing metainfo for a login stored by the login manager.
10
*
11
* Code using login manager can generally ignore this interface. When adding
12
* logins, default value will be created. When modifying logins, these
13
* properties will be unchanged unless a change is explicitly requested [by
14
* using modifyLogin() with a nsIPropertyBag]. When deleting a login or
15
* comparing logins, these properties are ignored.
16
*/
17
[scriptable, uuid(20d8eb40-c494-497f-b2a6-aaa32f807ebd)]
18
interface nsILoginMetaInfo : nsISupports {
19
/**
20
* The GUID to uniquely identify the login. This can be any arbitrary
21
* string, but a format as created by nsIUUIDGenerator is recommended.
22
* For example, "{d4e1a1f6-5ea0-40ee-bff5-da57982f21cf}"
23
*
24
* addLogin will generate a random value unless a value is provided.
25
*
26
* addLogin and modifyLogin will throw if the GUID already exists.
27
*/
28
attribute AString guid;
29
30
/**
31
* The time, in Unix Epoch milliseconds, when the login was first created.
32
*/
33
attribute unsigned long long timeCreated;
34
35
/**
36
* The time, in Unix Epoch milliseconds, when the login was last submitted
37
* in a form or used to begin an HTTP auth session.
38
*/
39
attribute unsigned long long timeLastUsed;
40
41
/**
42
* The time, in Unix Epoch milliseconds, when the login was last modified.
43
*
44
* Contrary to what the name may suggest, this attribute takes into account
45
* not only the password but also the username attribute.
46
*/
47
attribute unsigned long long timePasswordChanged;
48
49
/**
50
* The number of times the login was submitted in a form or used to begin
51
* an HTTP auth session.
52
*/
53
attribute unsigned long timesUsed;
54
};