1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIClientAuthDialogs.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 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 + * nsIClientAuthDialog 1.14 + * Provides UI for SSL client-auth dialogs. 1.15 + */ 1.16 +[scriptable, uuid(fa4c7520-1433-11d5-ba24-00108303b117)] 1.17 +interface nsIClientAuthDialogs : nsISupports 1.18 +{ 1.19 + /** 1.20 + * display 1.21 + * UI shown when a user is asked to do SSL client auth. 1.22 + */ 1.23 + void ChooseCertificate(in nsIInterfaceRequestor ctx, 1.24 + in wstring cn, 1.25 + in wstring organization, 1.26 + in wstring issuer, 1.27 + [array, size_is(count)] in wstring certNickList, 1.28 + [array, size_is(count)] in wstring certDetailsList, 1.29 + in unsigned long count, 1.30 + out long selectedIndex, 1.31 + out boolean canceled); 1.32 +}; 1.33 + 1.34 +[scriptable, uuid(95c4373e-bdd4-4a63-b431-f5b000367721)] 1.35 +interface nsIClientAuthUserDecision : nsISupports 1.36 +{ 1.37 + attribute boolean rememberClientAuthCertificate; 1.38 +}; 1.39 + 1.40 +%{C++ 1.41 +#define NS_CLIENTAUTHDIALOGS_CONTRACTID "@mozilla.org/nsClientAuthDialogs;1" 1.42 +%}