nsIPKCS11ModuleDB.idl 927 B

123456789101112131415161718192021222324252627282930313233343536
  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. #include "nsISupports.idl"
  7. interface nsIPKCS11Module;
  8. interface nsIPKCS11Slot;
  9. interface nsISimpleEnumerator;
  10. %{C++
  11. #define NS_PKCS11MODULEDB_CONTRACTID "@mozilla.org/security/pkcs11moduledb;1"
  12. %}
  13. [scriptable, uuid(ff9fbcd7-9517-4334-b97a-ceed78909974)]
  14. interface nsIPKCS11ModuleDB : nsISupports
  15. {
  16. nsIPKCS11Module getInternal();
  17. nsIPKCS11Module getInternalFIPS();
  18. nsIPKCS11Module findModuleByName(in AUTF8String name);
  19. nsIPKCS11Slot findSlotByName(in AUTF8String name);
  20. nsISimpleEnumerator listModules();
  21. readonly attribute boolean canToggleFIPS;
  22. void toggleFIPSMode();
  23. readonly attribute boolean isFIPSEnabled;
  24. };