michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * Information on the validity period of a X.509 certificate. michael@0: */ michael@0: [scriptable, uuid(e701dfd8-1dd1-11b2-a172-ffa6cc6156ad)] michael@0: interface nsIX509CertValidity : nsISupports { michael@0: michael@0: /** michael@0: * The earliest point in time where michael@0: * a certificate is valid. michael@0: */ michael@0: readonly attribute PRTime notBefore; michael@0: michael@0: /** michael@0: * "notBefore" attribute formatted as a time string michael@0: * according to the environment locale, michael@0: * according to the environment time zone. michael@0: */ michael@0: readonly attribute AString notBeforeLocalTime; michael@0: michael@0: /** michael@0: * The day portion of "notBefore" michael@0: * formatted as a time string michael@0: * according to the environment locale, michael@0: * according to the environment time zone. michael@0: */ michael@0: readonly attribute AString notBeforeLocalDay; michael@0: michael@0: /** michael@0: * "notBefore" attribute formatted as a string michael@0: * according to the environment locale, michael@0: * displayed as GMT / UTC. michael@0: */ michael@0: readonly attribute AString notBeforeGMT; michael@0: michael@0: /** michael@0: * The latest point in time where michael@0: * a certificate is valid. michael@0: */ michael@0: readonly attribute PRTime notAfter; michael@0: michael@0: /** michael@0: * "notAfter" attribute formatted as a time string michael@0: * according to the environment locale, michael@0: * according to the environment time zone. michael@0: */ michael@0: readonly attribute AString notAfterLocalTime; michael@0: michael@0: /** michael@0: * The day portion of "notAfter" michael@0: * formatted as a time string michael@0: * according to the environment locale, michael@0: * according to the environment time zone. michael@0: */ michael@0: readonly attribute AString notAfterLocalDay; michael@0: michael@0: /** michael@0: * "notAfter" attribute formatted as a time string michael@0: * according to the environment locale, michael@0: * displayed as GMT / UTC. michael@0: */ michael@0: readonly attribute AString notAfterGMT; michael@0: };