security/manager/ssl/public/nsIPK11TokenDB.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     7 #include "nsISupports.idl"
     9 interface nsIPK11Token;
    10 interface nsIEnumerator;
    12 /**
    13  * The PK11 Token Database provides access to the PK11 modules
    14  * that are installed, and the tokens that are available.
    15  * Interfaces: nsIPK11TokenDB
    16  * Threading: ??
    17  */
    18 %{C++
    19 #define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1"
    20 %}
    22 /**
    23  * nsIPK11TokenDB - Manages PK11 Tokens
    24  */
    25 [scriptable, uuid(4ee28c82-1dd2-11b2-aabf-bb4017abe395)]
    26 interface nsIPK11TokenDB : nsISupports
    27 {
    28   /*
    29    * Get the internal key database token
    30    */
    31   nsIPK11Token getInternalKeyToken();
    33   /*
    34    * Find a token by name
    35    */
    36   nsIPK11Token findTokenByName(in wstring tokenName);
    38   /*
    39    * List all tokens
    40    */
    41   nsIEnumerator listTokens();
    43 };

mercurial