security/manager/ssl/public/nsIProtectedAuthThread.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     5 #include "nsISupports.idl"
     6 #include "nsIObserver.idl"
     7 #include "nsIPKCS11Slot.idl"
     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);
    30   /**
    31    * The PKCS11 slot
    32    */
    33   readonly attribute nsIPKCS11Slot slot;
    35   /**
    36    * Gets token to be logged in name.
    37    */
    38   AString getTokenName();
    39 };
    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