security/manager/ssl/public/nsIProtectedAuthThread.idl

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:253829e2e967
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 #include "nsIObserver.idl"
7 #include "nsIPKCS11Slot.idl"
8
9 /**
10 * nsIProtectedAuthThread
11 * This is used to communicate with the thread login on to
12 * a token with CKF_PROTECTED_AUTHENTICATION_PATH set.
13 */
14 [scriptable, uuid(4bb27cb7-8984-4cee-8ce7-9b014c3d091b)]
15 interface nsIProtectedAuthThread : nsISupports
16 {
17 /**
18 * login - run the thread
19 * A user interface implementing this interface needs to
20 * call this method as soon as the message to the user is
21 * displayed. This will trigger login operation. No user
22 * cancellation is possible during login operation.
23 *
24 * When the login is done, the observe method of @observer will
25 * be called on the UI thread with a topic of "login-finished"
26 * and null data and subject.
27 */
28 void login(in nsIObserver observer);
29
30 /**
31 * The PKCS11 slot
32 */
33 readonly attribute nsIPKCS11Slot slot;
34
35 /**
36 * Gets token to be logged in name.
37 */
38 AString getTokenName();
39 };
40
41 %{ C++
42 // {45334489-3D30-47c6-920B-0A55A313AEBF}
43 #define NS_PROTECTEDAUTHTHREAD_CID \
44 { 0x45334489, 0x3d30, 0x47c6, { 0x92, 0x0b, 0x0a, 0x55, 0xa3, 0x13, 0xae, 0xbf } }
45 #define NS_PROTECTEDAUTHTHREAD_CONTRACTID "@mozilla.org/security/protectedauththread;1"
46 %}

mercurial