security/manager/ssl/public/nsIFormSigningDialog.idl
author Gervase Markham <gerv@gerv.net>
Thu, 31 May 2012 10:33:35 +0100
changeset 95270 e6da6ece3818eed14dd357220970bfc1d3bfe6e7
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 102997 a16372ce30b5f6b747246b01fcd215a4bf3b6342
permissions -rw-r--r--
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsIInterfaceRequestor;

/**
 * nsIFormSigningDialog
 * Provides UI for form signing.
 */
[scriptable, uuid(4fe04d6d-4b66-4023-a0bc-b43ce68b3e15)]
interface nsIFormSigningDialog : nsISupports
{
  /**
   *  confirmSignText
   *    UI shown when a web site calls crypto.signText,
   *    asking the user to confirm the confirm the signing request.
   *
   *  returns true if the user confirmed, false on cancel
   */
  boolean confirmSignText(in nsIInterfaceRequestor ctxt,
                          in AString host,
                          in AString signText,
                          [array, size_is(count)] in wstring certNickList,
                          [array, size_is(count)] in wstring certDetailsList,
                          in PRUint32 count,
                          out PRInt32 selectedIndex,
                          out AString password);
};

/**
 * NS_FORMSIGNINGDIALOG_CONTRACTID - contract id to obtain an instance
 *   that implements nsIFormSigningDialog.
 */
%{C++
#define NS_FORMSIGNINGDIALOG_CONTRACTID "@mozilla.org/nsFormSigningDialog;1"
%}