Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | interface nsIPK11Token; |
michael@0 | 10 | interface nsIEnumerator; |
michael@0 | 11 | |
michael@0 | 12 | /** |
michael@0 | 13 | * The PK11 Token Database provides access to the PK11 modules |
michael@0 | 14 | * that are installed, and the tokens that are available. |
michael@0 | 15 | * Interfaces: nsIPK11TokenDB |
michael@0 | 16 | * Threading: ?? |
michael@0 | 17 | */ |
michael@0 | 18 | %{C++ |
michael@0 | 19 | #define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1" |
michael@0 | 20 | %} |
michael@0 | 21 | |
michael@0 | 22 | /** |
michael@0 | 23 | * nsIPK11TokenDB - Manages PK11 Tokens |
michael@0 | 24 | */ |
michael@0 | 25 | [scriptable, uuid(4ee28c82-1dd2-11b2-aabf-bb4017abe395)] |
michael@0 | 26 | interface nsIPK11TokenDB : nsISupports |
michael@0 | 27 | { |
michael@0 | 28 | /* |
michael@0 | 29 | * Get the internal key database token |
michael@0 | 30 | */ |
michael@0 | 31 | nsIPK11Token getInternalKeyToken(); |
michael@0 | 32 | |
michael@0 | 33 | /* |
michael@0 | 34 | * Find a token by name |
michael@0 | 35 | */ |
michael@0 | 36 | nsIPK11Token findTokenByName(in wstring tokenName); |
michael@0 | 37 | |
michael@0 | 38 | /* |
michael@0 | 39 | * List all tokens |
michael@0 | 40 | */ |
michael@0 | 41 | nsIEnumerator listTokens(); |
michael@0 | 42 | |
michael@0 | 43 | }; |
michael@0 | 44 |