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