nsICertTree.idl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include "nsITreeView.idl"
  8. interface nsIX509Cert;
  9. interface nsIX509CertList;
  10. [scriptable, uuid(d0180863-606e-49e6-8324-cf45ed4dd891)]
  11. interface nsICertTreeItem : nsISupports {
  12. readonly attribute nsIX509Cert cert;
  13. readonly attribute AString hostPort;
  14. };
  15. [scriptable, uuid(55d5ad6b-5572-47fe-941c-f01fe723659e)]
  16. interface nsICertTree : nsITreeView {
  17. void loadCerts(in unsigned long type);
  18. void loadCertsFromCache(in nsIX509CertList cache, in unsigned long type);
  19. nsIX509Cert getCert(in unsigned long index);
  20. nsICertTreeItem getTreeItem(in unsigned long index);
  21. void deleteEntryObject(in unsigned long index);
  22. };
  23. %{C++
  24. #define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
  25. { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
  26. #define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
  27. %}