security/manager/ssl/public/nsICertTree.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsICertTree.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +#include "nsITreeView.idl"
    1.12 +
    1.13 +interface nsINSSCertCache;
    1.14 +interface nsIX509Cert;
    1.15 +
    1.16 +[scriptable, uuid(d0180863-606e-49e6-8324-cf45ed4dd891)]
    1.17 +interface nsICertTreeItem : nsISupports {
    1.18 +  readonly attribute nsIX509Cert cert;
    1.19 +  readonly attribute AString hostPort;
    1.20 +};
    1.21 +
    1.22 +[scriptable, uuid(a8cd1c89-a901-4735-831b-7198b7b8b6b1)]
    1.23 +interface nsICertTree : nsITreeView {
    1.24 +
    1.25 +  void loadCerts(in unsigned long type);
    1.26 +  void loadCertsFromCache(in nsINSSCertCache cache, in unsigned long type);
    1.27 +
    1.28 +  nsIX509Cert getCert(in unsigned long index);
    1.29 +  nsICertTreeItem getTreeItem(in unsigned long index);
    1.30 +  boolean isHostPortOverride(in unsigned long index);
    1.31 +  
    1.32 +  void deleteEntryObject(in unsigned long index);
    1.33 +};
    1.34 +
    1.35 +%{C++
    1.36 +
    1.37 +#define NS_CERTTREE_CID { 0x4ea60761, 0x31d6, 0x491d, \
    1.38 +                         { 0x9e, 0x34, 0x4b, 0x53, 0xa2, 0x6c, 0x41, 0x6c } }
    1.39 +
    1.40 +#define NS_CERTTREE_CONTRACTID "@mozilla.org/security/nsCertTree;1"
    1.41 +
    1.42 +%}
    1.43 +

mercurial