1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsITokenPasswordDialogs.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIInterfaceRequestor; 1.11 + 1.12 + 1.13 +/** 1.14 + * nsITokenPasswordDialogs 1.15 + * This is the interface for setting and changing password 1.16 + * on a PKCS11 token. 1.17 + */ 1.18 +[scriptable, uuid(be26b580-1dd1-11b2-9946-c598d0d07727)] 1.19 +interface nsITokenPasswordDialogs : nsISupports 1.20 +{ 1.21 + /** 1.22 + * setPassword - sets the password/PIN on the named token. 1.23 + * The canceled output value should be set to TRUE when 1.24 + * the user (or implementation) cancels the operation. 1.25 + */ 1.26 + void setPassword(in nsIInterfaceRequestor ctx, in wstring tokenName, 1.27 + out boolean canceled); 1.28 + 1.29 + void getPassword(in nsIInterfaceRequestor ctx, 1.30 + in wstring tokenName, 1.31 + out wstring password, 1.32 + out boolean canceled); 1.33 +}; 1.34 + 1.35 +%{C++ 1.36 +#define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1" 1.37 +%}