nsINSSU2FToken.idl 652 B

12345678910111213141516171819202122
  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 "nsIU2FToken.idl"
  5. /**
  6. * Interface used to interact with the NSS-backed software U2F Token
  7. */
  8. [scriptable, uuid(d9104a00-140b-4f86-a4b0-4998878ef4e6 )]
  9. interface nsINSSU2FToken : nsIU2FToken {
  10. /**
  11. * Initializes the token and constructs and persists keys, if needed. Asserts
  12. * that it is only called by the main thread.
  13. */
  14. void init();
  15. };
  16. %{C++
  17. #define NS_NSSU2FTOKEN_CONTRACTID "@mozilla.org/dom/u2f/nss-u2f-token;1"
  18. %}