nsIX509CertValidity.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/security/manager/ssl/public/nsIX509CertValidity.idl
  3. */
  4. #ifndef __gen_nsIX509CertValidity_h__
  5. #define __gen_nsIX509CertValidity_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIX509CertValidity */
  14. #define NS_IX509CERTVALIDITY_IID_STR "e701dfd8-1dd1-11b2-a172-ffa6cc6156ad"
  15. #define NS_IX509CERTVALIDITY_IID \
  16. {0xe701dfd8, 0x1dd1, 0x11b2, \
  17. { 0xa1, 0x72, 0xff, 0xa6, 0xcc, 0x61, 0x56, 0xad }}
  18. /**
  19. * Information on the validity period of a X.509 certificate.
  20. *
  21. * @status FROZEN
  22. */
  23. class NS_NO_VTABLE nsIX509CertValidity : public nsISupports {
  24. public:
  25. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IX509CERTVALIDITY_IID)
  26. /**
  27. * The earliest point in time where
  28. * a certificate is valid.
  29. */
  30. /* readonly attribute PRTime notBefore; */
  31. NS_IMETHOD GetNotBefore(PRTime *aNotBefore) = 0;
  32. /**
  33. * "notBefore" attribute formatted as a time string
  34. * according to the environment locale,
  35. * according to the environment time zone.
  36. */
  37. /* readonly attribute AString notBeforeLocalTime; */
  38. NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) = 0;
  39. /**
  40. * The day portion of "notBefore"
  41. * formatted as a time string
  42. * according to the environment locale,
  43. * according to the environment time zone.
  44. */
  45. /* readonly attribute AString notBeforeLocalDay; */
  46. NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) = 0;
  47. /**
  48. * "notBefore" attribute formatted as a string
  49. * according to the environment locale,
  50. * displayed as GMT / UTC.
  51. */
  52. /* readonly attribute AString notBeforeGMT; */
  53. NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) = 0;
  54. /**
  55. * The latest point in time where
  56. * a certificate is valid.
  57. */
  58. /* readonly attribute PRTime notAfter; */
  59. NS_IMETHOD GetNotAfter(PRTime *aNotAfter) = 0;
  60. /**
  61. * "notAfter" attribute formatted as a time string
  62. * according to the environment locale,
  63. * according to the environment time zone.
  64. */
  65. /* readonly attribute AString notAfterLocalTime; */
  66. NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) = 0;
  67. /**
  68. * The day portion of "notAfter"
  69. * formatted as a time string
  70. * according to the environment locale,
  71. * according to the environment time zone.
  72. */
  73. /* readonly attribute AString notAfterLocalDay; */
  74. NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) = 0;
  75. /**
  76. * "notAfter" attribute formatted as a time string
  77. * according to the environment locale,
  78. * displayed as GMT / UTC.
  79. */
  80. /* readonly attribute AString notAfterGMT; */
  81. NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) = 0;
  82. };
  83. /* Use this macro when declaring classes that implement this interface. */
  84. #define NS_DECL_NSIX509CERTVALIDITY \
  85. NS_IMETHOD GetNotBefore(PRTime *aNotBefore); \
  86. NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime); \
  87. NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay); \
  88. NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT); \
  89. NS_IMETHOD GetNotAfter(PRTime *aNotAfter); \
  90. NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime); \
  91. NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay); \
  92. NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT);
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  94. #define NS_FORWARD_NSIX509CERTVALIDITY(_to) \
  95. NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return _to GetNotBefore(aNotBefore); } \
  96. NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return _to GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  97. NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return _to GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  98. NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return _to GetNotBeforeGMT(aNotBeforeGMT); } \
  99. NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return _to GetNotAfter(aNotAfter); } \
  100. NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return _to GetNotAfterLocalTime(aNotAfterLocalTime); } \
  101. NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return _to GetNotAfterLocalDay(aNotAfterLocalDay); } \
  102. NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return _to GetNotAfterGMT(aNotAfterGMT); }
  103. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  104. #define NS_FORWARD_SAFE_NSIX509CERTVALIDITY(_to) \
  105. NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBefore(aNotBefore); } \
  106. NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  107. NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  108. NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeGMT(aNotBeforeGMT); } \
  109. NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfter(aNotAfter); } \
  110. NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalTime(aNotAfterLocalTime); } \
  111. NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalDay(aNotAfterLocalDay); } \
  112. NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterGMT(aNotAfterGMT); }
  113. #if 0
  114. /* Use the code below as a template for the implementation class for this interface. */
  115. /* Header file */
  116. class nsX509CertValidity : public nsIX509CertValidity
  117. {
  118. public:
  119. NS_DECL_ISUPPORTS
  120. NS_DECL_NSIX509CERTVALIDITY
  121. nsX509CertValidity();
  122. private:
  123. ~nsX509CertValidity();
  124. protected:
  125. /* additional members */
  126. };
  127. /* Implementation file */
  128. NS_IMPL_ISUPPORTS1(nsX509CertValidity, nsIX509CertValidity)
  129. nsX509CertValidity::nsX509CertValidity()
  130. {
  131. /* member initializers and constructor code */
  132. }
  133. nsX509CertValidity::~nsX509CertValidity()
  134. {
  135. /* destructor code */
  136. }
  137. /* readonly attribute PRTime notBefore; */
  138. NS_IMETHODIMP nsX509CertValidity::GetNotBefore(PRTime *aNotBefore)
  139. {
  140. return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. /* readonly attribute AString notBeforeLocalTime; */
  143. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. /* readonly attribute AString notBeforeLocalDay; */
  148. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay)
  149. {
  150. return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152. /* readonly attribute AString notBeforeGMT; */
  153. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeGMT(nsAString & aNotBeforeGMT)
  154. {
  155. return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157. /* readonly attribute PRTime notAfter; */
  158. NS_IMETHODIMP nsX509CertValidity::GetNotAfter(PRTime *aNotAfter)
  159. {
  160. return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162. /* readonly attribute AString notAfterLocalTime; */
  163. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalTime(nsAString & aNotAfterLocalTime)
  164. {
  165. return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. /* readonly attribute AString notAfterLocalDay; */
  168. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalDay(nsAString & aNotAfterLocalDay)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* readonly attribute AString notAfterGMT; */
  173. NS_IMETHODIMP nsX509CertValidity::GetNotAfterGMT(nsAString & aNotAfterGMT)
  174. {
  175. return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177. /* End of implementation class template. */
  178. #endif
  179. #endif /* __gen_nsIX509CertValidity_h__ */