nsIX509CertValidity.idl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. #include "nsISupports.idl"
  7. /**
  8. * Information on the validity period of a X.509 certificate.
  9. */
  10. [scriptable, uuid(e701dfd8-1dd1-11b2-a172-ffa6cc6156ad)]
  11. interface nsIX509CertValidity : nsISupports {
  12. /**
  13. * The earliest point in time where
  14. * a certificate is valid.
  15. */
  16. readonly attribute PRTime notBefore;
  17. /**
  18. * "notBefore" attribute formatted as a time string
  19. * according to the environment locale,
  20. * according to the environment time zone.
  21. */
  22. readonly attribute AString notBeforeLocalTime;
  23. /**
  24. * The day portion of "notBefore"
  25. * formatted as a time string
  26. * according to the environment locale,
  27. * according to the environment time zone.
  28. */
  29. readonly attribute AString notBeforeLocalDay;
  30. /**
  31. * "notBefore" attribute formatted as a string
  32. * according to the environment locale,
  33. * displayed as GMT / UTC.
  34. */
  35. readonly attribute AString notBeforeGMT;
  36. /**
  37. * The latest point in time where
  38. * a certificate is valid.
  39. */
  40. readonly attribute PRTime notAfter;
  41. /**
  42. * "notAfter" attribute formatted as a time string
  43. * according to the environment locale,
  44. * according to the environment time zone.
  45. */
  46. readonly attribute AString notAfterLocalTime;
  47. /**
  48. * The day portion of "notAfter"
  49. * formatted as a time string
  50. * according to the environment locale,
  51. * according to the environment time zone.
  52. */
  53. readonly attribute AString notAfterLocalDay;
  54. /**
  55. * "notAfter" attribute formatted as a time string
  56. * according to the environment locale,
  57. * displayed as GMT / UTC.
  58. */
  59. readonly attribute AString notAfterGMT;
  60. };