Blame security/manager/ssl/nsITokenDialogs.idl

Packit f0b94e
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#include "nsISupports.idl"
Packit f0b94e
Packit f0b94e
interface nsIInterfaceRequestor;
Packit f0b94e
interface nsIProtectedAuthThread;
Packit f0b94e
Packit f0b94e
[scriptable, uuid(a1cbc159-468c-495d-8068-61dd538cbcca)]
Packit f0b94e
interface nsITokenDialogs : nsISupports
Packit f0b94e
{
Packit f0b94e
  [must_use]
Packit f0b94e
  void ChooseToken(in nsIInterfaceRequestor ctx,
Packit f0b94e
                   [array, size_is(count)] in wstring tokenNameList,
Packit f0b94e
                   in unsigned long count,
Packit f0b94e
                   out AString tokenName,
Packit f0b94e
                   out boolean canceled);
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Displays notification dialog to the user that they are expected to
Packit f0b94e
   * authenticate to the token using its "protected authentication path" feature.
Packit f0b94e
   */
Packit f0b94e
  [must_use]
Packit f0b94e
  void displayProtectedAuth(in nsIInterfaceRequestor ctx,
Packit f0b94e
                            in nsIProtectedAuthThread runnable);
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
%{C++
Packit f0b94e
#define NS_TOKENDIALOGS_CONTRACTID "@mozilla.org/nsTokenDialogs;1"
Packit f0b94e
%}