michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIInterfaceRequestor; michael@0: michael@0: michael@0: /** michael@0: * nsITokenPasswordDialogs michael@0: * This is the interface for setting and changing password michael@0: * on a PKCS11 token. michael@0: */ michael@0: [scriptable, uuid(be26b580-1dd1-11b2-9946-c598d0d07727)] michael@0: interface nsITokenPasswordDialogs : nsISupports michael@0: { michael@0: /** michael@0: * setPassword - sets the password/PIN on the named token. michael@0: * The canceled output value should be set to TRUE when michael@0: * the user (or implementation) cancels the operation. michael@0: */ michael@0: void setPassword(in nsIInterfaceRequestor ctx, in wstring tokenName, michael@0: out boolean canceled); michael@0: michael@0: void getPassword(in nsIInterfaceRequestor ctx, michael@0: in wstring tokenName, michael@0: out wstring password, michael@0: out boolean canceled); michael@0: }; michael@0: michael@0: %{C++ michael@0: #define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1" michael@0: %}