tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsITokenPasswordDialogs.idl (902B)


      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 
      5 #include "nsISupports.idl"
      6 
      7 interface nsIInterfaceRequestor;
      8 interface nsIPK11Token;
      9 
     10 /**
     11 *  This is the interface for setting and changing password
     12 *  on a PKCS11 token.
     13 */
     14 [scriptable, uuid(87dbd64a-4466-474e-95f5-1ad1cee5702c)]
     15 interface nsITokenPasswordDialogs : nsISupports
     16 {
     17  /**
     18   * Brings up a dialog to set the password on a token.
     19   *
     20   * @param ctx A user interface context.
     21   * @param token {nsIPK11Token} The token.
     22   * @return true if the user canceled the dialog, false otherwise.
     23   */
     24  [must_use]
     25  boolean setPassword(in nsIInterfaceRequestor ctx, in nsIPK11Token token);
     26 };
     27 
     28 %{C++
     29 #define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1"
     30 %}