PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/gecko_api/include/nsIX509CertValidity.h

http://firefox-mac-pdf.googlecode.com/
C Header | 220 lines | 104 code | 40 blank | 76 comment | 0 complexity | 309db8c34ea868ccabc971611256888b MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/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 NS_SCRIPTABLE nsIX509CertValidity : public nsISupports {
  24. public:
  25. NS_DECLARE_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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) = 0;
  82. };
  83. NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509CertValidity, NS_IX509CERTVALIDITY_IID)
  84. /* Use this macro when declaring classes that implement this interface. */
  85. #define NS_DECL_NSIX509CERTVALIDITY \
  86. NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore); \
  87. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime); \
  88. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay); \
  89. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT); \
  90. NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter); \
  91. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime); \
  92. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay); \
  93. NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT);
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  95. #define NS_FORWARD_NSIX509CERTVALIDITY(_to) \
  96. NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return _to GetNotBefore(aNotBefore); } \
  97. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return _to GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  98. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return _to GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  99. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return _to GetNotBeforeGMT(aNotBeforeGMT); } \
  100. NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return _to GetNotAfter(aNotAfter); } \
  101. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return _to GetNotAfterLocalTime(aNotAfterLocalTime); } \
  102. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return _to GetNotAfterLocalDay(aNotAfterLocalDay); } \
  103. NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return _to GetNotAfterGMT(aNotAfterGMT); }
  104. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  105. #define NS_FORWARD_SAFE_NSIX509CERTVALIDITY(_to) \
  106. NS_SCRIPTABLE NS_IMETHOD GetNotBefore(PRTime *aNotBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBefore(aNotBefore); } \
  107. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalTime(aNotBeforeLocalTime); } \
  108. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeLocalDay(aNotBeforeLocalDay); } \
  109. NS_SCRIPTABLE NS_IMETHOD GetNotBeforeGMT(nsAString & aNotBeforeGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotBeforeGMT(aNotBeforeGMT); } \
  110. NS_SCRIPTABLE NS_IMETHOD GetNotAfter(PRTime *aNotAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfter(aNotAfter); } \
  111. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalTime(nsAString & aNotAfterLocalTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalTime(aNotAfterLocalTime); } \
  112. NS_SCRIPTABLE NS_IMETHOD GetNotAfterLocalDay(nsAString & aNotAfterLocalDay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterLocalDay(aNotAfterLocalDay); } \
  113. NS_SCRIPTABLE NS_IMETHOD GetNotAfterGMT(nsAString & aNotAfterGMT) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotAfterGMT(aNotAfterGMT); }
  114. #if 0
  115. /* Use the code below as a template for the implementation class for this interface. */
  116. /* Header file */
  117. class nsX509CertValidity : public nsIX509CertValidity
  118. {
  119. public:
  120. NS_DECL_ISUPPORTS
  121. NS_DECL_NSIX509CERTVALIDITY
  122. nsX509CertValidity();
  123. private:
  124. ~nsX509CertValidity();
  125. protected:
  126. /* additional members */
  127. };
  128. /* Implementation file */
  129. NS_IMPL_ISUPPORTS1(nsX509CertValidity, nsIX509CertValidity)
  130. nsX509CertValidity::nsX509CertValidity()
  131. {
  132. /* member initializers and constructor code */
  133. }
  134. nsX509CertValidity::~nsX509CertValidity()
  135. {
  136. /* destructor code */
  137. }
  138. /* readonly attribute PRTime notBefore; */
  139. NS_IMETHODIMP nsX509CertValidity::GetNotBefore(PRTime *aNotBefore)
  140. {
  141. return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143. /* readonly attribute AString notBeforeLocalTime; */
  144. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalTime(nsAString & aNotBeforeLocalTime)
  145. {
  146. return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. /* readonly attribute AString notBeforeLocalDay; */
  149. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeLocalDay(nsAString & aNotBeforeLocalDay)
  150. {
  151. return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153. /* readonly attribute AString notBeforeGMT; */
  154. NS_IMETHODIMP nsX509CertValidity::GetNotBeforeGMT(nsAString & aNotBeforeGMT)
  155. {
  156. return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. /* readonly attribute PRTime notAfter; */
  159. NS_IMETHODIMP nsX509CertValidity::GetNotAfter(PRTime *aNotAfter)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* readonly attribute AString notAfterLocalTime; */
  164. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalTime(nsAString & aNotAfterLocalTime)
  165. {
  166. return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. /* readonly attribute AString notAfterLocalDay; */
  169. NS_IMETHODIMP nsX509CertValidity::GetNotAfterLocalDay(nsAString & aNotAfterLocalDay)
  170. {
  171. return NS_ERROR_NOT_IMPLEMENTED;
  172. }
  173. /* readonly attribute AString notAfterGMT; */
  174. NS_IMETHODIMP nsX509CertValidity::GetNotAfterGMT(nsAString & aNotAfterGMT)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. /* End of implementation class template. */
  179. #endif
  180. #endif /* __gen_nsIX509CertValidity_h__ */