Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / nsITokenPasswordDialogs.idl
blob1e5475e6dde9b01926c9e4bbd6f2667fc0cff342
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;
10 /**
11 * This is the interface for setting and changing password
12 * on a PKCS11 token.
14 [scriptable, uuid(87dbd64a-4466-474e-95f5-1ad1cee5702c)]
15 interface nsITokenPasswordDialogs : nsISupports
17 /**
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.
24 [must_use]
25 boolean setPassword(in nsIInterfaceRequestor ctx, in nsIPK11Token token);
28 %{C++
29 #define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1"