|
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 nsIPKCS11Module; |
|
10 interface nsIPKCS11Slot; |
|
11 interface nsIEnumerator; |
|
12 |
|
13 %{C++ |
|
14 #define NS_PKCS11MODULEDB_CONTRACTID "@mozilla.org/security/pkcs11moduledb;1" |
|
15 %} |
|
16 |
|
17 [scriptable, uuid(ff9fbcd7-9517-4334-b97a-ceed78909974)] |
|
18 interface nsIPKCS11ModuleDB : nsISupports |
|
19 { |
|
20 nsIPKCS11Module getInternal(); |
|
21 |
|
22 nsIPKCS11Module getInternalFIPS(); |
|
23 |
|
24 nsIPKCS11Module findModuleByName(in wstring name); |
|
25 |
|
26 nsIPKCS11Slot findSlotByName(in wstring name); |
|
27 |
|
28 nsIEnumerator listModules(); |
|
29 |
|
30 readonly attribute boolean canToggleFIPS; |
|
31 |
|
32 void toggleFIPSMode(); |
|
33 |
|
34 readonly attribute boolean isFIPSEnabled; |
|
35 }; |
|
36 |