|
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 |
|
7 #include "nsISupports.idl" |
|
8 #include "nsITreeView.idl" |
|
9 |
|
10 interface nsINSSCertCache; |
|
11 interface nsIX509Cert; |
|
12 |
|
13 [scriptable, uuid(d0180863-606e-49e6-8324-cf45ed4dd891)] |
|
14 interface nsICertTreeItem : nsISupports { |
|
15 readonly attribute nsIX509Cert cert; |
|
16 readonly attribute AString hostPort; |
|
17 }; |
|
18 |
|
19 [scriptable, uuid(a8cd1c89-a901-4735-831b-7198b7b8b6b1)] |
|
20 interface nsICertTree : nsITreeView { |
|
21 |
|
22 void loadCerts(in unsigned long type); |
|
23 void loadCertsFromCache(in nsINSSCertCache cache, in unsigned long type); |
|
24 |
|
25 nsIX509Cert getCert(in unsigned long index); |
|
26 nsICertTreeItem getTreeItem(in unsigned long index); |
|
27 boolean isHostPortOverride(in unsigned long index); |
|
28 |
|
29 void deleteEntryObject(in unsigned long index); |
|
30 }; |
|
31 |
|
32 %{C++ |
|
33 |
|
34 #define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \ |
|
35 { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } } |
|
36 |
|
37 #define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1" |
|
38 |
|
39 %} |
|
40 |