1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsITokenDialogs.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 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 +interface nsIProtectedAuthThread; 1.12 + 1.13 +[scriptable, uuid(a1cbc159-468c-495d-8068-61dd538cbcca)] 1.14 +interface nsITokenDialogs : nsISupports 1.15 +{ 1.16 + void ChooseToken(in nsIInterfaceRequestor ctx, 1.17 + [array, size_is(count)] in wstring tokenNameList, 1.18 + in unsigned long count, 1.19 + out wstring tokenName, 1.20 + out boolean canceled); 1.21 + 1.22 + /** 1.23 + * displayProtectedAuth - displays notification dialog to the user 1.24 + * that he is expected to authenticate to the token using its 1.25 + * "protected authentication path" feature 1.26 + */ 1.27 + void displayProtectedAuth(in nsIInterfaceRequestor ctx, 1.28 + in nsIProtectedAuthThread runnable); 1.29 +}; 1.30 + 1.31 +%{C++ 1.32 +#define NS_TOKENDIALOGS_CONTRACTID "@mozilla.org/nsTokenDialogs;1" 1.33 +%}