security/manager/ssl/public/nsIX509CertValidity.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsIX509CertValidity.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,70 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +/**
    1.13 + * Information on the validity period of a X.509 certificate.
    1.14 + */
    1.15 +[scriptable, uuid(e701dfd8-1dd1-11b2-a172-ffa6cc6156ad)]
    1.16 +interface nsIX509CertValidity : nsISupports {
    1.17 +
    1.18 +  /**
    1.19 +   *  The earliest point in time where
    1.20 +   *  a certificate is valid.
    1.21 +   */
    1.22 +  readonly attribute PRTime notBefore;
    1.23 +  
    1.24 +  /**
    1.25 +   *  "notBefore" attribute formatted as a time string
    1.26 +   *  according to the environment locale,
    1.27 +   *  according to the environment time zone.
    1.28 +   */
    1.29 +  readonly attribute AString notBeforeLocalTime;
    1.30 +
    1.31 +  /**
    1.32 +   *  The day portion of "notBefore" 
    1.33 +   *  formatted as a time string
    1.34 +   *  according to the environment locale,
    1.35 +   *  according to the environment time zone.
    1.36 +   */
    1.37 +  readonly attribute AString notBeforeLocalDay;
    1.38 +
    1.39 +  /**
    1.40 +   *  "notBefore" attribute formatted as a string
    1.41 +   *  according to the environment locale,
    1.42 +   *  displayed as GMT / UTC.
    1.43 +   */
    1.44 +  readonly attribute AString notBeforeGMT;
    1.45 +
    1.46 +  /**
    1.47 +   *  The latest point in time where
    1.48 +   *  a certificate is valid.
    1.49 +   */
    1.50 +  readonly attribute PRTime notAfter;
    1.51 +
    1.52 +  /**
    1.53 +   *  "notAfter" attribute formatted as a time string
    1.54 +   *  according to the environment locale,
    1.55 +   *  according to the environment time zone.
    1.56 +   */
    1.57 +  readonly attribute AString notAfterLocalTime;
    1.58 +
    1.59 +  /**
    1.60 +   *  The day portion of "notAfter" 
    1.61 +   *  formatted as a time string
    1.62 +   *  according to the environment locale,
    1.63 +   *  according to the environment time zone.
    1.64 +   */
    1.65 +  readonly attribute AString notAfterLocalDay;
    1.66 +
    1.67 +  /**
    1.68 +   *  "notAfter" attribute formatted as a time string
    1.69 +   *  according to the environment locale,
    1.70 +   *  displayed as GMT / UTC.
    1.71 +   */
    1.72 +  readonly attribute AString notAfterGMT;
    1.73 +};

mercurial