|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsISupports.idl" |
|
8 |
|
9 /** |
|
10 * Information on the validity period of a X.509 certificate. |
|
11 */ |
|
12 [scriptable, uuid(e701dfd8-1dd1-11b2-a172-ffa6cc6156ad)] |
|
13 interface nsIX509CertValidity : nsISupports { |
|
14 |
|
15 /** |
|
16 * The earliest point in time where |
|
17 * a certificate is valid. |
|
18 */ |
|
19 readonly attribute PRTime notBefore; |
|
20 |
|
21 /** |
|
22 * "notBefore" attribute formatted as a time string |
|
23 * according to the environment locale, |
|
24 * according to the environment time zone. |
|
25 */ |
|
26 readonly attribute AString notBeforeLocalTime; |
|
27 |
|
28 /** |
|
29 * The day portion of "notBefore" |
|
30 * formatted as a time string |
|
31 * according to the environment locale, |
|
32 * according to the environment time zone. |
|
33 */ |
|
34 readonly attribute AString notBeforeLocalDay; |
|
35 |
|
36 /** |
|
37 * "notBefore" attribute formatted as a string |
|
38 * according to the environment locale, |
|
39 * displayed as GMT / UTC. |
|
40 */ |
|
41 readonly attribute AString notBeforeGMT; |
|
42 |
|
43 /** |
|
44 * The latest point in time where |
|
45 * a certificate is valid. |
|
46 */ |
|
47 readonly attribute PRTime notAfter; |
|
48 |
|
49 /** |
|
50 * "notAfter" attribute formatted as a time string |
|
51 * according to the environment locale, |
|
52 * according to the environment time zone. |
|
53 */ |
|
54 readonly attribute AString notAfterLocalTime; |
|
55 |
|
56 /** |
|
57 * The day portion of "notAfter" |
|
58 * formatted as a time string |
|
59 * according to the environment locale, |
|
60 * according to the environment time zone. |
|
61 */ |
|
62 readonly attribute AString notAfterLocalDay; |
|
63 |
|
64 /** |
|
65 * "notAfter" attribute formatted as a time string |
|
66 * according to the environment locale, |
|
67 * displayed as GMT / UTC. |
|
68 */ |
|
69 readonly attribute AString notAfterGMT; |
|
70 }; |