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