nsITokenPasswordDialogs.idl 895 B

123456789101112131415161718192021222324252627282930
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #include "nsISupports.idl"
  5. interface nsIInterfaceRequestor;
  6. /**
  7. * nsITokenPasswordDialogs
  8. * This is the interface for setting and changing password
  9. * on a PKCS11 token.
  10. */
  11. [scriptable, uuid(87dbd64a-4466-474e-95f5-1ad1cee5702c)]
  12. interface nsITokenPasswordDialogs : nsISupports
  13. {
  14. /**
  15. * setPassword - sets the password/PIN on the named token.
  16. * The canceled output value should be set to TRUE when
  17. * the user (or implementation) cancels the operation.
  18. */
  19. void setPassword(in nsIInterfaceRequestor ctx, in wstring tokenName,
  20. out boolean canceled);
  21. };
  22. %{C++
  23. #define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1"
  24. %}