|
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/. */ |
|
4 |
|
5 #include "nsISupports.idl" |
|
6 |
|
7 interface nsIInterfaceRequestor; |
|
8 |
|
9 /** |
|
10 * nsIClientAuthDialog |
|
11 * Provides UI for SSL client-auth dialogs. |
|
12 */ |
|
13 [scriptable, uuid(fa4c7520-1433-11d5-ba24-00108303b117)] |
|
14 interface nsIClientAuthDialogs : nsISupports |
|
15 { |
|
16 /** |
|
17 * display |
|
18 * UI shown when a user is asked to do SSL client auth. |
|
19 */ |
|
20 void ChooseCertificate(in nsIInterfaceRequestor ctx, |
|
21 in wstring cn, |
|
22 in wstring organization, |
|
23 in wstring issuer, |
|
24 [array, size_is(count)] in wstring certNickList, |
|
25 [array, size_is(count)] in wstring certDetailsList, |
|
26 in unsigned long count, |
|
27 out long selectedIndex, |
|
28 out boolean canceled); |
|
29 }; |
|
30 |
|
31 [scriptable, uuid(95c4373e-bdd4-4a63-b431-f5b000367721)] |
|
32 interface nsIClientAuthUserDecision : nsISupports |
|
33 { |
|
34 attribute boolean rememberClientAuthCertificate; |
|
35 }; |
|
36 |
|
37 %{C++ |
|
38 #define NS_CLIENTAUTHDIALOGS_CONTRACTID "@mozilla.org/nsClientAuthDialogs;1" |
|
39 %} |