Blame security/manager/ssl/nsITokenPasswordDialogs.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
Packit f0b94e
/**
Packit f0b94e
 *  This is the interface for setting and changing password
Packit f0b94e
 *  on a PKCS11 token.
Packit f0b94e
 */
Packit f0b94e
[scriptable, uuid(87dbd64a-4466-474e-95f5-1ad1cee5702c)]
Packit f0b94e
interface nsITokenPasswordDialogs : nsISupports
Packit f0b94e
{
Packit f0b94e
  /**
Packit f0b94e
   * Brings up a dialog to set the password on a token.
Packit f0b94e
   *
Packit f0b94e
   * @param ctx A user interface context.
Packit f0b94e
   * @param tokenName Name of the token.
Packit f0b94e
   * @return true if the user canceled the dialog, false otherwise.
Packit f0b94e
   */
Packit f0b94e
  [must_use]
Packit f0b94e
  boolean setPassword(in nsIInterfaceRequestor ctx, in AString tokenName);
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
%{C++
Packit f0b94e
#define NS_TOKENPASSWORDSDIALOG_CONTRACTID "@mozilla.org/nsTokenPasswordDialogs;1"
Packit f0b94e
%}