PageRenderTime 60ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/mozilla/mozilla/dist/include/caps/nsIPrincipal.h

http://kmbrasil.codeplex.com
C++ Header | 435 lines | 222 code | 68 blank | 145 comment | 0 complexity | e2d1b96fea5f3840fa22cd93af9a9ee4 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/caps/idl/nsIPrincipal.idl
  3. */
  4. #ifndef __gen_nsIPrincipal_h__
  5. #define __gen_nsIPrincipal_h__
  6. #ifndef __gen_nsISerializable_h__
  7. #include "nsISerializable.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. struct JSContext;
  14. struct JSPrincipals;
  15. class nsIURI; /* forward declaration */
  16. /* starting interface: nsIPrincipal */
  17. #define NS_IPRINCIPAL_IID_STR "fb9ddeb9-26f9-46b8-85d5-3978aaee05aa"
  18. #define NS_IPRINCIPAL_IID \
  19. {0xfb9ddeb9, 0x26f9, 0x46b8, \
  20. { 0x85, 0xd5, 0x39, 0x78, 0xaa, 0xee, 0x05, 0xaa }}
  21. class NS_NO_VTABLE nsIPrincipal : public nsISerializable {
  22. public:
  23. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRINCIPAL_IID)
  24. /**
  25. * Values of capabilities for each principal. Order is
  26. * significant: if an operation is performed on a set
  27. * of capabilities, the minimum is computed.
  28. */
  29. enum { ENABLE_DENIED = 1 };
  30. enum { ENABLE_UNKNOWN = 2 };
  31. enum { ENABLE_WITH_USER_PERMISSION = 3 };
  32. enum { ENABLE_GRANTED = 4 };
  33. /**
  34. * Returns the security preferences associated with this principal.
  35. * prefBranch will be set to the pref branch to which these preferences
  36. * pertain. id is a pseudo-unique identifier, pertaining to either the
  37. * fingerprint or the origin. subjectName is a name that identifies the
  38. * entity this principal represents (may be empty). grantedList and
  39. * deniedList are space-separated lists of capabilities which were
  40. * explicitly granted or denied by a pref.
  41. */
  42. /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList); */
  43. NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) = 0;
  44. /**
  45. * Returns whether the other principal is equivalent to this principal.
  46. * Principals are considered equal if they are the same principal,
  47. * they have the same origin, or have the same certificate fingerprint ID
  48. */
  49. /* boolean equals (in nsIPrincipal other); */
  50. NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) = 0;
  51. /**
  52. * Returns a hash value for the principal.
  53. */
  54. /* readonly attribute unsigned long hashValue; */
  55. NS_IMETHOD GetHashValue(PRUint32 *aHashValue) = 0;
  56. /**
  57. * Returns the JS equivalent of the principal.
  58. * @see JSPrincipals.h
  59. */
  60. /* JSPrincipals getJSPrincipals (in JSContext cx); */
  61. NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) = 0;
  62. /**
  63. * The domain security policy of the principal.
  64. */
  65. /* attribute voidPtr securityPolicy; */
  66. NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) = 0;
  67. NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) = 0;
  68. /* short canEnableCapability (in string capability); */
  69. NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) = 0;
  70. /* void setCanEnableCapability (in string capability, in short canEnable); */
  71. NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) = 0;
  72. /* boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
  73. NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) = 0;
  74. /* void enableCapability (in string capability, inout voidPtr annotation); */
  75. NS_IMETHOD EnableCapability(const char *capability, void * *annotation) = 0;
  76. /* void revertCapability (in string capability, inout voidPtr annotation); */
  77. NS_IMETHOD RevertCapability(const char *capability, void * *annotation) = 0;
  78. /* void disableCapability (in string capability, inout voidPtr annotation); */
  79. NS_IMETHOD DisableCapability(const char *capability, void * *annotation) = 0;
  80. /**
  81. * The codebase URI to which this principal pertains. This is
  82. * generally the document URI.
  83. */
  84. /* readonly attribute nsIURI URI; */
  85. NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
  86. /**
  87. * The domain URI to which this principal pertains.
  88. * This is congruent with HTMLDocument.domain, and may be null.
  89. * Setting this has no effect on the URI.
  90. */
  91. /* attribute nsIURI domain; */
  92. NS_IMETHOD GetDomain(nsIURI * *aDomain) = 0;
  93. NS_IMETHOD SetDomain(nsIURI * aDomain) = 0;
  94. /**
  95. * The origin of this principal's domain, if non-null, or its
  96. * codebase URI otherwise. An origin is defined as:
  97. * scheme + host + port.
  98. */
  99. /* readonly attribute string origin; */
  100. NS_IMETHOD GetOrigin(char * *aOrigin) = 0;
  101. /**
  102. * Whether this principal is associated with a certificate.
  103. */
  104. /* readonly attribute boolean hasCertificate; */
  105. NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) = 0;
  106. /**
  107. * The fingerprint ID of this principal's certificate.
  108. * Throws if there is no certificate associated with this principal.
  109. */
  110. /* readonly attribute AUTF8String fingerprint; */
  111. NS_IMETHOD GetFingerprint(nsACString & aFingerprint) = 0;
  112. /**
  113. * The pretty name for the certificate. This sort of (but not really)
  114. * identifies the subject of the certificate (the entity that stands behind
  115. * the certificate). Note that this may be empty; prefer to get the
  116. * certificate itself and get this information from it, since that may
  117. * provide more information.
  118. *
  119. * Throws if there is no certificate associated with this principal.
  120. */
  121. /* readonly attribute AUTF8String prettyName; */
  122. NS_IMETHOD GetPrettyName(nsACString & aPrettyName) = 0;
  123. /**
  124. * Returns whether the other principal is equal to or weaker than this
  125. * principal. Principals are equal if they are the same object, they
  126. * have the same origin, or they have the same certificate ID.
  127. *
  128. * Thus a principal subsumes itself if it is equal to itself.
  129. *
  130. * The system principal subsumes itself and all other principals except
  131. * the non-principal.
  132. *
  133. * The non-principal is not equal to itself or any other principal, and
  134. * therefore does not subsume itself.
  135. *
  136. * Both codebase and certificate principals are subsumed by the system
  137. * principal, but no codebase or certificate principal yet subsumes any
  138. * other codebase or certificate principal. This may change in a future
  139. * release; note that nsIPrincipal is unfrozen, not slated to be frozen.
  140. */
  141. /* boolean subsumes (in nsIPrincipal other); */
  142. NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) = 0;
  143. /**
  144. * The subject name for the certificate. This actually identifies the
  145. * subject of the certificate. This may well not be a string that would
  146. * mean much to a typical user on its own (e.g. it may have a number of
  147. * different names all concatenated together with some information on what
  148. * they mean in between).
  149. *
  150. * Throws if there is no certificate associated with this principal.
  151. */
  152. /* readonly attribute AUTF8String subjectName; */
  153. NS_IMETHOD GetSubjectName(nsACString & aSubjectName) = 0;
  154. /**
  155. * The certificate associated with this principal, if any. If there isn't
  156. * one, this will return null. Getting this attribute never throws.
  157. */
  158. /* readonly attribute nsISupports certificate; */
  159. NS_IMETHOD GetCertificate(nsISupports * *aCertificate) = 0;
  160. };
  161. /* Use this macro when declaring classes that implement this interface. */
  162. #define NS_DECL_NSIPRINCIPAL \
  163. NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList); \
  164. NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval); \
  165. NS_IMETHOD GetHashValue(PRUint32 *aHashValue); \
  166. NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval); \
  167. NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy); \
  168. NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy); \
  169. NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval); \
  170. NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable); \
  171. NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval); \
  172. NS_IMETHOD EnableCapability(const char *capability, void * *annotation); \
  173. NS_IMETHOD RevertCapability(const char *capability, void * *annotation); \
  174. NS_IMETHOD DisableCapability(const char *capability, void * *annotation); \
  175. NS_IMETHOD GetURI(nsIURI * *aURI); \
  176. NS_IMETHOD GetDomain(nsIURI * *aDomain); \
  177. NS_IMETHOD SetDomain(nsIURI * aDomain); \
  178. NS_IMETHOD GetOrigin(char * *aOrigin); \
  179. NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate); \
  180. NS_IMETHOD GetFingerprint(nsACString & aFingerprint); \
  181. NS_IMETHOD GetPrettyName(nsACString & aPrettyName); \
  182. NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval); \
  183. NS_IMETHOD GetSubjectName(nsACString & aSubjectName); \
  184. NS_IMETHOD GetCertificate(nsISupports * *aCertificate);
  185. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  186. #define NS_FORWARD_NSIPRINCIPAL(_to) \
  187. NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) { return _to GetPreferences(prefBranch, id, subjectName, grantedList, deniedList); } \
  188. NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) { return _to Equals(other, _retval); } \
  189. NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return _to GetHashValue(aHashValue); } \
  190. NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) { return _to GetJSPrincipals(cx, _retval); } \
  191. NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) { return _to GetSecurityPolicy(aSecurityPolicy); } \
  192. NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) { return _to SetSecurityPolicy(aSecurityPolicy); } \
  193. NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) { return _to CanEnableCapability(capability, _retval); } \
  194. NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) { return _to SetCanEnableCapability(capability, canEnable); } \
  195. NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) { return _to IsCapabilityEnabled(capability, annotation, _retval); } \
  196. NS_IMETHOD EnableCapability(const char *capability, void * *annotation) { return _to EnableCapability(capability, annotation); } \
  197. NS_IMETHOD RevertCapability(const char *capability, void * *annotation) { return _to RevertCapability(capability, annotation); } \
  198. NS_IMETHOD DisableCapability(const char *capability, void * *annotation) { return _to DisableCapability(capability, annotation); } \
  199. NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
  200. NS_IMETHOD GetDomain(nsIURI * *aDomain) { return _to GetDomain(aDomain); } \
  201. NS_IMETHOD SetDomain(nsIURI * aDomain) { return _to SetDomain(aDomain); } \
  202. NS_IMETHOD GetOrigin(char * *aOrigin) { return _to GetOrigin(aOrigin); } \
  203. NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) { return _to GetHasCertificate(aHasCertificate); } \
  204. NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return _to GetFingerprint(aFingerprint); } \
  205. NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return _to GetPrettyName(aPrettyName); } \
  206. NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) { return _to Subsumes(other, _retval); } \
  207. NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return _to GetSubjectName(aSubjectName); } \
  208. NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return _to GetCertificate(aCertificate); }
  209. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  210. #define NS_FORWARD_SAFE_NSIPRINCIPAL(_to) \
  211. NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferences(prefBranch, id, subjectName, grantedList, deniedList); } \
  212. NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \
  213. NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHashValue(aHashValue); } \
  214. NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSPrincipals(cx, _retval); } \
  215. NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityPolicy(aSecurityPolicy); } \
  216. NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityPolicy(aSecurityPolicy); } \
  217. NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanEnableCapability(capability, _retval); } \
  218. NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanEnableCapability(capability, canEnable); } \
  219. NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCapabilityEnabled(capability, annotation, _retval); } \
  220. NS_IMETHOD EnableCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableCapability(capability, annotation); } \
  221. NS_IMETHOD RevertCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->RevertCapability(capability, annotation); } \
  222. NS_IMETHOD DisableCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableCapability(capability, annotation); } \
  223. NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  224. NS_IMETHOD GetDomain(nsIURI * *aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
  225. NS_IMETHOD SetDomain(nsIURI * aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
  226. NS_IMETHOD GetOrigin(char * *aOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
  227. NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasCertificate(aHasCertificate); } \
  228. NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFingerprint(aFingerprint); } \
  229. NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrettyName(aPrettyName); } \
  230. NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subsumes(other, _retval); } \
  231. NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectName(aSubjectName); } \
  232. NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificate(aCertificate); }
  233. #if 0
  234. /* Use the code below as a template for the implementation class for this interface. */
  235. /* Header file */
  236. class nsPrincipal : public nsIPrincipal
  237. {
  238. public:
  239. NS_DECL_ISUPPORTS
  240. NS_DECL_NSIPRINCIPAL
  241. nsPrincipal();
  242. private:
  243. ~nsPrincipal();
  244. protected:
  245. /* additional members */
  246. };
  247. /* Implementation file */
  248. NS_IMPL_ISUPPORTS1(nsPrincipal, nsIPrincipal)
  249. nsPrincipal::nsPrincipal()
  250. {
  251. /* member initializers and constructor code */
  252. }
  253. nsPrincipal::~nsPrincipal()
  254. {
  255. /* destructor code */
  256. }
  257. /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList); */
  258. NS_IMETHODIMP nsPrincipal::GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList)
  259. {
  260. return NS_ERROR_NOT_IMPLEMENTED;
  261. }
  262. /* boolean equals (in nsIPrincipal other); */
  263. NS_IMETHODIMP nsPrincipal::Equals(nsIPrincipal *other, PRBool *_retval)
  264. {
  265. return NS_ERROR_NOT_IMPLEMENTED;
  266. }
  267. /* readonly attribute unsigned long hashValue; */
  268. NS_IMETHODIMP nsPrincipal::GetHashValue(PRUint32 *aHashValue)
  269. {
  270. return NS_ERROR_NOT_IMPLEMENTED;
  271. }
  272. /* JSPrincipals getJSPrincipals (in JSContext cx); */
  273. NS_IMETHODIMP nsPrincipal::GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval)
  274. {
  275. return NS_ERROR_NOT_IMPLEMENTED;
  276. }
  277. /* attribute voidPtr securityPolicy; */
  278. NS_IMETHODIMP nsPrincipal::GetSecurityPolicy(void * *aSecurityPolicy)
  279. {
  280. return NS_ERROR_NOT_IMPLEMENTED;
  281. }
  282. NS_IMETHODIMP nsPrincipal::SetSecurityPolicy(void * aSecurityPolicy)
  283. {
  284. return NS_ERROR_NOT_IMPLEMENTED;
  285. }
  286. /* short canEnableCapability (in string capability); */
  287. NS_IMETHODIMP nsPrincipal::CanEnableCapability(const char *capability, PRInt16 *_retval)
  288. {
  289. return NS_ERROR_NOT_IMPLEMENTED;
  290. }
  291. /* void setCanEnableCapability (in string capability, in short canEnable); */
  292. NS_IMETHODIMP nsPrincipal::SetCanEnableCapability(const char *capability, PRInt16 canEnable)
  293. {
  294. return NS_ERROR_NOT_IMPLEMENTED;
  295. }
  296. /* boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
  297. NS_IMETHODIMP nsPrincipal::IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval)
  298. {
  299. return NS_ERROR_NOT_IMPLEMENTED;
  300. }
  301. /* void enableCapability (in string capability, inout voidPtr annotation); */
  302. NS_IMETHODIMP nsPrincipal::EnableCapability(const char *capability, void * *annotation)
  303. {
  304. return NS_ERROR_NOT_IMPLEMENTED;
  305. }
  306. /* void revertCapability (in string capability, inout voidPtr annotation); */
  307. NS_IMETHODIMP nsPrincipal::RevertCapability(const char *capability, void * *annotation)
  308. {
  309. return NS_ERROR_NOT_IMPLEMENTED;
  310. }
  311. /* void disableCapability (in string capability, inout voidPtr annotation); */
  312. NS_IMETHODIMP nsPrincipal::DisableCapability(const char *capability, void * *annotation)
  313. {
  314. return NS_ERROR_NOT_IMPLEMENTED;
  315. }
  316. /* readonly attribute nsIURI URI; */
  317. NS_IMETHODIMP nsPrincipal::GetURI(nsIURI * *aURI)
  318. {
  319. return NS_ERROR_NOT_IMPLEMENTED;
  320. }
  321. /* attribute nsIURI domain; */
  322. NS_IMETHODIMP nsPrincipal::GetDomain(nsIURI * *aDomain)
  323. {
  324. return NS_ERROR_NOT_IMPLEMENTED;
  325. }
  326. NS_IMETHODIMP nsPrincipal::SetDomain(nsIURI * aDomain)
  327. {
  328. return NS_ERROR_NOT_IMPLEMENTED;
  329. }
  330. /* readonly attribute string origin; */
  331. NS_IMETHODIMP nsPrincipal::GetOrigin(char * *aOrigin)
  332. {
  333. return NS_ERROR_NOT_IMPLEMENTED;
  334. }
  335. /* readonly attribute boolean hasCertificate; */
  336. NS_IMETHODIMP nsPrincipal::GetHasCertificate(PRBool *aHasCertificate)
  337. {
  338. return NS_ERROR_NOT_IMPLEMENTED;
  339. }
  340. /* readonly attribute AUTF8String fingerprint; */
  341. NS_IMETHODIMP nsPrincipal::GetFingerprint(nsACString & aFingerprint)
  342. {
  343. return NS_ERROR_NOT_IMPLEMENTED;
  344. }
  345. /* readonly attribute AUTF8String prettyName; */
  346. NS_IMETHODIMP nsPrincipal::GetPrettyName(nsACString & aPrettyName)
  347. {
  348. return NS_ERROR_NOT_IMPLEMENTED;
  349. }
  350. /* boolean subsumes (in nsIPrincipal other); */
  351. NS_IMETHODIMP nsPrincipal::Subsumes(nsIPrincipal *other, PRBool *_retval)
  352. {
  353. return NS_ERROR_NOT_IMPLEMENTED;
  354. }
  355. /* readonly attribute AUTF8String subjectName; */
  356. NS_IMETHODIMP nsPrincipal::GetSubjectName(nsACString & aSubjectName)
  357. {
  358. return NS_ERROR_NOT_IMPLEMENTED;
  359. }
  360. /* readonly attribute nsISupports certificate; */
  361. NS_IMETHODIMP nsPrincipal::GetCertificate(nsISupports * *aCertificate)
  362. {
  363. return NS_ERROR_NOT_IMPLEMENTED;
  364. }
  365. /* End of implementation class template. */
  366. #endif
  367. #endif /* __gen_nsIPrincipal_h__ */