security/manager/ssl/public/nsIProtectedAuthThread.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6 #include "nsIObserver.idl"
michael@0 7 #include "nsIPKCS11Slot.idl"
michael@0 8
michael@0 9 /**
michael@0 10 * nsIProtectedAuthThread
michael@0 11 * This is used to communicate with the thread login on to
michael@0 12 * a token with CKF_PROTECTED_AUTHENTICATION_PATH set.
michael@0 13 */
michael@0 14 [scriptable, uuid(4bb27cb7-8984-4cee-8ce7-9b014c3d091b)]
michael@0 15 interface nsIProtectedAuthThread : nsISupports
michael@0 16 {
michael@0 17 /**
michael@0 18 * login - run the thread
michael@0 19 * A user interface implementing this interface needs to
michael@0 20 * call this method as soon as the message to the user is
michael@0 21 * displayed. This will trigger login operation. No user
michael@0 22 * cancellation is possible during login operation.
michael@0 23 *
michael@0 24 * When the login is done, the observe method of @observer will
michael@0 25 * be called on the UI thread with a topic of "login-finished"
michael@0 26 * and null data and subject.
michael@0 27 */
michael@0 28 void login(in nsIObserver observer);
michael@0 29
michael@0 30 /**
michael@0 31 * The PKCS11 slot
michael@0 32 */
michael@0 33 readonly attribute nsIPKCS11Slot slot;
michael@0 34
michael@0 35 /**
michael@0 36 * Gets token to be logged in name.
michael@0 37 */
michael@0 38 AString getTokenName();
michael@0 39 };
michael@0 40
michael@0 41 %{ C++
michael@0 42 // {45334489-3D30-47c6-920B-0A55A313AEBF}
michael@0 43 #define NS_PROTECTEDAUTHTHREAD_CID \
michael@0 44 { 0x45334489, 0x3d30, 0x47c6, { 0x92, 0x0b, 0x0a, 0x55, 0xa3, 0x13, 0xae, 0xbf } }
michael@0 45 #define NS_PROTECTEDAUTHTHREAD_CONTRACTID "@mozilla.org/security/protectedauththread;1"
michael@0 46 %}

mercurial