|
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 |
|
9 interface nsIPK11Token; |
|
10 interface nsIEnumerator; |
|
11 |
|
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 %} |
|
21 |
|
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(); |
|
32 |
|
33 /* |
|
34 * Find a token by name |
|
35 */ |
|
36 nsIPK11Token findTokenByName(in wstring tokenName); |
|
37 |
|
38 /* |
|
39 * List all tokens |
|
40 */ |
|
41 nsIEnumerator listTokens(); |
|
42 |
|
43 }; |
|
44 |