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