nsIPK11TokenDB.idl 1.0 KB

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